Add launcher
Browse files
app.py
CHANGED
|
@@ -60,4 +60,6 @@ with gr.Blocks() as demo:
|
|
| 60 |
qa_button = gr.Button(value="Submit question", interactive=False)
|
| 61 |
|
| 62 |
lchain = pdf_object.change(create_langchain, inputs=pdf_object, outputs=[chain_state, qa_button])
|
| 63 |
-
qa_button.click(ask_question, inputs=[chain_state, question_box], outputs=gr.Textbox(label="Answer"))
|
|
|
|
|
|
|
|
|
| 60 |
qa_button = gr.Button(value="Submit question", interactive=False)
|
| 61 |
|
| 62 |
lchain = pdf_object.change(create_langchain, inputs=pdf_object, outputs=[chain_state, qa_button])
|
| 63 |
+
qa_button.click(ask_question, inputs=[chain_state, question_box], outputs=gr.Textbox(label="Answer"))
|
| 64 |
+
|
| 65 |
+
demo.launch(debug=True)
|