darienacosta commited on
Commit
e5bcc08
1 Parent(s): cbc4db8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1093,11 +1093,11 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
1093
  outputs=[chatbot, history_state, video_html, my_file, audio_html, tmp_aud_file, message])
1094
 
1095
  openai_api_key_textbox.change(set_openai_api_key,
1096
- inputs=openai_api_key_textbox, use_gpt4_state],
1097
  outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
1098
  qa_chain_state, memory_state, use_gpt4_state])
1099
  openai_api_key_textbox.submit(set_openai_api_key,
1100
- inputs=openai_api_key_textbox, use_gpt4_state],
1101
  outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
1102
  qa_chain_state, memory_state, use_gpt4_state])
1103
 
 
1093
  outputs=[chatbot, history_state, video_html, my_file, audio_html, tmp_aud_file, message])
1094
 
1095
  openai_api_key_textbox.change(set_openai_api_key,
1096
+ inputs=[openai_api_key_textbox, use_gpt4_state],
1097
  outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
1098
  qa_chain_state, memory_state, use_gpt4_state])
1099
  openai_api_key_textbox.submit(set_openai_api_key,
1100
+ inputs=[openai_api_key_textbox, use_gpt4_state],
1101
  outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
1102
  qa_chain_state, memory_state, use_gpt4_state])
1103