Update app.py
Browse files
app.py
CHANGED
@@ -85,10 +85,10 @@ def process_pdf_and_generate_response(pdf_file):
|
|
85 |
response = "Response based on the processed PDF"
|
86 |
return response
|
87 |
|
88 |
-
# Gradio interface with customized layout
|
89 |
iface = gr.Interface(
|
90 |
fn=process_pdf_and_generate_response,
|
91 |
-
inputs=
|
|
|
92 |
title="pdf-chatbot",
|
93 |
description="Upload a PDF and receive insights based on its content."
|
94 |
)
|
|
|
85 |
response = "Response based on the processed PDF"
|
86 |
return response
|
87 |
|
|
|
88 |
iface = gr.Interface(
|
89 |
fn=process_pdf_and_generate_response,
|
90 |
+
inputs=gr.File(label="Upload PDF", type="file"),
|
91 |
+
outputs=gr.Textbox("Placeholder for PDF insights", label="Insights", type="text"),
|
92 |
title="pdf-chatbot",
|
93 |
description="Upload a PDF and receive insights based on its content."
|
94 |
)
|