Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,10 @@ def answer_question(pdf_file, question):
|
|
19 |
# Define the Gradio interface
|
20 |
interface = gr.Interface(
|
21 |
fn=answer_question,
|
22 |
-
inputs=[
|
|
|
|
|
|
|
23 |
outputs="text",
|
24 |
title="PDF Question Answering",
|
25 |
description="Upload a PDF document and ask a question based on its content."
|
|
|
19 |
# Define the Gradio interface
|
20 |
interface = gr.Interface(
|
21 |
fn=answer_question,
|
22 |
+
inputs=[
|
23 |
+
gr.File(type="pdf"),
|
24 |
+
gr.Textbox(lines=2, placeholder="Type your question here...")
|
25 |
+
],
|
26 |
outputs="text",
|
27 |
title="PDF Question Answering",
|
28 |
description="Upload a PDF document and ask a question based on its content."
|