11
Browse files
app.py
CHANGED
@@ -17,10 +17,7 @@ with gr.Blocks() as demo:
|
|
17 |
answer = gr.Textbox(label="Answer")
|
18 |
ask_button = gr.Button("Ask")
|
19 |
|
20 |
-
app = GUI()
|
21 |
-
upload_button.click(fn=app.pdf_init, inputs=[api_input, pdf_input])
|
22 |
ask_button.launch(auth = ('user','admin'), auth_message= "Enter your username and password that you received in on Slack")
|
23 |
-
ask_button.click(app.get_answer, inputs=question_input, outputs=answer)
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
demo.title = "CHATGPT-PAPER-READER"
|
|
|
17 |
answer = gr.Textbox(label="Answer")
|
18 |
ask_button = gr.Button("Ask")
|
19 |
|
|
|
|
|
20 |
ask_button.launch(auth = ('user','admin'), auth_message= "Enter your username and password that you received in on Slack")
|
|
|
21 |
|
22 |
if __name__ == "__main__":
|
23 |
demo.title = "CHATGPT-PAPER-READER"
|