Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,11 +59,12 @@ def chatbot(pdf_file, user_question):
|
|
59 |
# Create Gradio Interface
|
60 |
iface = gr.Interface(
|
61 |
fn=chatbot,
|
62 |
-
inputs=[gr.File(type="
|
63 |
outputs="text",
|
64 |
title="PDF Chatbot",
|
65 |
description="Upload a PDF and ask questions about its content.",
|
66 |
)
|
67 |
|
|
|
68 |
# Run the Gradio interface
|
69 |
iface.launch()
|
|
|
59 |
# Create Gradio Interface
|
60 |
iface = gr.Interface(
|
61 |
fn=chatbot,
|
62 |
+
inputs=[gr.File(type="binary", label="Upload your PDF"), gr.Textbox(lines=1, label="Ask a Question")],
|
63 |
outputs="text",
|
64 |
title="PDF Chatbot",
|
65 |
description="Upload a PDF and ask questions about its content.",
|
66 |
)
|
67 |
|
68 |
+
|
69 |
# Run the Gradio interface
|
70 |
iface.launch()
|