Spaces:
Runtime error
Runtime error
Commit
·
f318d8d
1
Parent(s):
19d93ca
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,8 +69,10 @@ with gr.Blocks() as demo:
|
|
| 69 |
app = GUI()
|
| 70 |
upload_button.click(fn=app.analyse, inputs=[api_input, pdf_input], outputs=result)
|
| 71 |
ask_button.click(app.ask_question, inputs=question_input, outputs=answer)
|
| 72 |
-
|
|
|
|
| 73 |
|
| 74 |
if __name__ == "__main__":
|
| 75 |
demo.title = "CHATGPT-PAPER-READER"
|
|
|
|
| 76 |
demo.launch() # add "share=True" to share CHATGPT-PAPER-READER app on Internet. an app on hugging face
|
|
|
|
| 69 |
app = GUI()
|
| 70 |
upload_button.click(fn=app.analyse, inputs=[api_input, pdf_input], outputs=result)
|
| 71 |
ask_button.click(app.ask_question, inputs=question_input, outputs=answer)
|
| 72 |
+
iface = gr.Interface(title=title, description=description)
|
| 73 |
+
iface.launch()
|
| 74 |
|
| 75 |
if __name__ == "__main__":
|
| 76 |
demo.title = "CHATGPT-PAPER-READER"
|
| 77 |
+
|
| 78 |
demo.launch() # add "share=True" to share CHATGPT-PAPER-READER app on Internet. an app on hugging face
|