epochs-demos commited on
Commit
6726b96
·
1 Parent(s): e14435b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -69,9 +69,8 @@ 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
- iface = gr.Interface(title=title, description=description)
73
- iface.launch()
74
-
75
  if __name__ == "__main__":
76
- demo.Interface(title=title, description=description)
77
- 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
+
 
 
73
  if __name__ == "__main__":
74
+ demo.title = title
75
+ demo.discription= description
76
+ demo.launch() # add "share=True" to share CHATGPT-PAPER-READER app on Internet. an app on hugging face