Update _app.py
Browse files
_app.py
CHANGED
|
@@ -21,9 +21,7 @@ def qa(question: str, doc: str) -> str:
|
|
| 21 |
demo = gr.Interface(
|
| 22 |
qa,
|
| 23 |
[gr.Textbox(label="Question"), PDF(label="Document")],
|
| 24 |
-
gr.Textbox()
|
| 25 |
-
examples=[["What is the total gross worth?", str(dir_ / "invoice_2.pdf")],
|
| 26 |
-
["Whos is being invoiced?", str(dir_ / "sample_invoice.pdf")]]
|
| 27 |
)
|
| 28 |
|
| 29 |
if __name__ == "__main__":
|
|
|
|
| 21 |
demo = gr.Interface(
|
| 22 |
qa,
|
| 23 |
[gr.Textbox(label="Question"), PDF(label="Document")],
|
| 24 |
+
gr.Textbox()
|
|
|
|
|
|
|
| 25 |
)
|
| 26 |
|
| 27 |
if __name__ == "__main__":
|