stefanbschneider
commited on
add label for pdf input
Browse files
app.py
CHANGED
@@ -26,6 +26,6 @@ def answer_doc_question(pdf_file, question):
|
|
26 |
return answer["answer"]
|
27 |
|
28 |
|
29 |
-
pdf_input = gr.File(file_types=[".pdf"])
|
30 |
question = gr.Textbox(label="Type a question regarding the uploaded document here.")
|
31 |
gr.Interface(fn=answer_doc_question, inputs=[pdf_input, question], outputs="text").launch()
|
|
|
26 |
return answer["answer"]
|
27 |
|
28 |
|
29 |
+
pdf_input = gr.File(file_types=[".pdf"], label="Upload a PDF document and ask a question about it.")
|
30 |
question = gr.Textbox(label="Type a question regarding the uploaded document here.")
|
31 |
gr.Interface(fn=answer_doc_question, inputs=[pdf_input, question], outputs="text").launch()
|