Spaces:
Sleeping
Sleeping
Commit
•
571b70a
1
Parent(s):
3dff4cb
Updating Chat bot and add launch
Browse files
app.py
CHANGED
@@ -119,4 +119,9 @@ with gr.Blocks(css=css) as demo:
|
|
119 |
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
|
120 |
submit_button = gr.Button("Send Message")
|
121 |
load_pdf.click(loading_pdf, None, langchain_status, queue=False)
|
122 |
-
load_pdf.click(chat_api, inputs=[pdf_doc,file_extension,API_key,LLM_option], outputs=[langchain_status], queue=False)
|
|
|
|
|
|
|
|
|
|
|
|
119 |
question = gr.Textbox(label="Question", placeholder="Type your question and hit Enter")
|
120 |
submit_button = gr.Button("Send Message")
|
121 |
load_pdf.click(loading_pdf, None, langchain_status, queue=False)
|
122 |
+
load_pdf.click(chat_api, inputs=[pdf_doc,file_extension,API_key,LLM_option], outputs=[langchain_status], queue=False)
|
123 |
+
# question.submit(add_text, [chatbot, question], [chatbot, question]).then(
|
124 |
+
# bot, chatbot, chatbot
|
125 |
+
# )
|
126 |
+
|
127 |
+
demo.launch()
|