Spaces:
Runtime error
Runtime error
Commit
·
db4a040
1
Parent(s):
c791d03
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,8 +74,12 @@ def start_ask(question):
|
|
| 74 |
iface = gr.Interface(fn=start_analyse,inputs=["text", "file"],outputs="text",title=title,description=description)
|
| 75 |
upload_button = iface.get_widget("file")
|
| 76 |
upload_button.label = "Upload PDF File"
|
|
|
|
|
|
|
| 77 |
question_input = gr.inputs.Textbox(label="Your Question", placeholder="Authors of this paper?")
|
| 78 |
ask_button = gr.Button("Ask")
|
|
|
|
| 79 |
iface.add_input(question_input)
|
| 80 |
iface.add_output(ask_button)
|
|
|
|
| 81 |
iface.launch()
|
|
|
|
| 74 |
iface = gr.Interface(fn=start_analyse,inputs=["text", "file"],outputs="text",title=title,description=description)
|
| 75 |
upload_button = iface.get_widget("file")
|
| 76 |
upload_button.label = "Upload PDF File"
|
| 77 |
+
iface.inputs[1].label = "Upload PDF File" # Set the label for the file input
|
| 78 |
+
|
| 79 |
question_input = gr.inputs.Textbox(label="Your Question", placeholder="Authors of this paper?")
|
| 80 |
ask_button = gr.Button("Ask")
|
| 81 |
+
|
| 82 |
iface.add_input(question_input)
|
| 83 |
iface.add_output(ask_button)
|
| 84 |
+
|
| 85 |
iface.launch()
|