Spaces:
Sleeping
Sleeping
handling temperature bar
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ with gr.Blocks() as demo:
|
|
79 |
clear_button = gr.ClearButton([input_txt, chatbot])
|
80 |
# Backend Process:
|
81 |
file_msg = upload_btn.upload(fn=UploadFile.process_uploaded_files, inputs=[
|
82 |
-
upload_btn, chatbot,
|
83 |
|
84 |
txt_msg = input_txt.submit(fn=ChatBot.respond,
|
85 |
inputs=[chatbot,
|
@@ -87,8 +87,7 @@ with gr.Blocks() as demo:
|
|
87 |
rag_with_dropdown,
|
88 |
temperature_bar,
|
89 |
model_choice],
|
90 |
-
outputs=[input_txt,chatbot,
|
91 |
-
ref_output],
|
92 |
queue=False).then(lambda: gr.Textbox(interactive=True),
|
93 |
None,
|
94 |
[input_txt], queue=False)
|
@@ -99,8 +98,7 @@ with gr.Blocks() as demo:
|
|
99 |
rag_with_dropdown,
|
100 |
temperature_bar,
|
101 |
model_choice],
|
102 |
-
outputs=[input_txt,
|
103 |
-
chatbot, ref_output],
|
104 |
queue=False).then(lambda: gr.Textbox(interactive=True),
|
105 |
None, [input_txt], queue=False)
|
106 |
|
|
|
79 |
clear_button = gr.ClearButton([input_txt, chatbot])
|
80 |
# Backend Process:
|
81 |
file_msg = upload_btn.upload(fn=UploadFile.process_uploaded_files, inputs=[
|
82 |
+
upload_btn, chatbot, rag_with_dropdown], outputs=[input_txt, chatbot], queue=False)
|
83 |
|
84 |
txt_msg = input_txt.submit(fn=ChatBot.respond,
|
85 |
inputs=[chatbot,
|
|
|
87 |
rag_with_dropdown,
|
88 |
temperature_bar,
|
89 |
model_choice],
|
90 |
+
outputs=[input_txt,chatbot,ref_output],
|
|
|
91 |
queue=False).then(lambda: gr.Textbox(interactive=True),
|
92 |
None,
|
93 |
[input_txt], queue=False)
|
|
|
98 |
rag_with_dropdown,
|
99 |
temperature_bar,
|
100 |
model_choice],
|
101 |
+
outputs=[input_txt,chatbot, ref_output],
|
|
|
102 |
queue=False).then(lambda: gr.Textbox(interactive=True),
|
103 |
None, [input_txt], queue=False)
|
104 |
|