Spaces:
Runtime error
Runtime error
Commit
·
5f13058
1
Parent(s):
b39fcd0
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,6 @@ with gr.Blocks() as demo:
|
|
44 |
</div>
|
45 |
</div>
|
46 |
"""
|
47 |
-
gr.title(title)
|
48 |
|
49 |
|
50 |
with gr.Tab("Upload PDF File"):
|
@@ -66,10 +65,8 @@ with gr.Blocks() as demo:
|
|
66 |
|
67 |
|
68 |
app = GUI()
|
69 |
-
|
70 |
ask_button.click(app.ask_question, inputs=question_input, outputs=answer)
|
71 |
|
72 |
if __name__ == "__main__":
|
73 |
-
demo.title = title
|
74 |
-
demo.discription= description
|
75 |
demo.launch() # add "share=True" to share CHATGPT-PAPER-READER app on Internet. an app on hugging face
|
|
|
44 |
</div>
|
45 |
</div>
|
46 |
"""
|
|
|
47 |
|
48 |
|
49 |
with gr.Tab("Upload PDF File"):
|
|
|
65 |
|
66 |
|
67 |
app = GUI()
|
68 |
+
iface = gr.Interface(fn=app.analyse, inputs=[api_input, pdf_input], outputs=result,title=title,d,description=description)
|
69 |
ask_button.click(app.ask_question, inputs=question_input, outputs=answer)
|
70 |
|
71 |
if __name__ == "__main__":
|
|
|
|
|
72 |
demo.launch() # add "share=True" to share CHATGPT-PAPER-READER app on Internet. an app on hugging face
|