Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def gradio_interface(pdf, question):
|
|
| 71 |
# Gradio interface
|
| 72 |
gr.Interface(
|
| 73 |
fn=gradio_interface,
|
| 74 |
-
inputs=[gr.File(file_count="single", type="
|
| 75 |
outputs="text",
|
| 76 |
title="PDF Q&A",
|
| 77 |
description="Upload a PDF and ask questions about it.",
|
|
|
|
| 71 |
# Gradio interface
|
| 72 |
gr.Interface(
|
| 73 |
fn=gradio_interface,
|
| 74 |
+
inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
|
| 75 |
outputs="text",
|
| 76 |
title="PDF Q&A",
|
| 77 |
description="Upload a PDF and ask questions about it.",
|