Spaces:
Sleeping
Sleeping
Alfie Grace
commited on
Commit
·
1a41d3f
1
Parent(s):
fee88df
Removed my_file variable
Browse files
app.py
CHANGED
@@ -659,7 +659,7 @@ with gr.Blocks(css=".gradio-container {background-color: black}") as block:
|
|
659 |
lang_level_state, translate_to_state, literary_style_state,
|
660 |
qa_chain_state, docsearch_state, use_embeddings_state],
|
661 |
# outputs=[chatbot, history_state, video_html, my_file, audio_html, tmp_aud_file, message])
|
662 |
-
outputs=[chatbot, history_state,
|
663 |
# outputs=[chatbot, history_state, audio_html, tmp_aud_file, message])
|
664 |
|
665 |
submit.click(chat, inputs=[openai_api_key_textbox, message, history_state, chain_state, trace_chain_state,
|
@@ -670,7 +670,7 @@ with gr.Blocks(css=".gradio-container {background-color: black}") as block:
|
|
670 |
lang_level_state, translate_to_state, literary_style_state,
|
671 |
qa_chain_state, docsearch_state, use_embeddings_state],
|
672 |
# outputs=[chatbot, history_state, video_html, my_file, audio_html, tmp_aud_file, message])
|
673 |
-
outputs=[chatbot, history_state,
|
674 |
# outputs=[chatbot, history_state, audio_html, tmp_aud_file, message])
|
675 |
|
676 |
openai_api_key_textbox.change(set_openai_api_key,
|
|
|
659 |
lang_level_state, translate_to_state, literary_style_state,
|
660 |
qa_chain_state, docsearch_state, use_embeddings_state],
|
661 |
# outputs=[chatbot, history_state, video_html, my_file, audio_html, tmp_aud_file, message])
|
662 |
+
outputs=[chatbot, history_state, message])
|
663 |
# outputs=[chatbot, history_state, audio_html, tmp_aud_file, message])
|
664 |
|
665 |
submit.click(chat, inputs=[openai_api_key_textbox, message, history_state, chain_state, trace_chain_state,
|
|
|
670 |
lang_level_state, translate_to_state, literary_style_state,
|
671 |
qa_chain_state, docsearch_state, use_embeddings_state],
|
672 |
# outputs=[chatbot, history_state, video_html, my_file, audio_html, tmp_aud_file, message])
|
673 |
+
outputs=[chatbot, history_state, message])
|
674 |
# outputs=[chatbot, history_state, audio_html, tmp_aud_file, message])
|
675 |
|
676 |
openai_api_key_textbox.change(set_openai_api_key,
|