Address textbox change issue
Browse files- app.py +4 -0
- requirements.txt +5 -5
app.py
CHANGED
|
@@ -873,5 +873,9 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
| 873 |
inputs=[openai_api_key_textbox],
|
| 874 |
outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
|
| 875 |
qa_chain_state, memory_state])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 876 |
|
| 877 |
block.launch(debug=True)
|
|
|
|
| 873 |
inputs=[openai_api_key_textbox],
|
| 874 |
outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
|
| 875 |
qa_chain_state, memory_state])
|
| 876 |
+
openai_api_key_textbox.submit(set_openai_api_key,
|
| 877 |
+
inputs=[openai_api_key_textbox],
|
| 878 |
+
outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
|
| 879 |
+
qa_chain_state, memory_state])
|
| 880 |
|
| 881 |
block.launch(debug=True)
|
requirements.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
openai==0.26.
|
| 2 |
-
gradio==3.
|
| 3 |
google-search-results
|
| 4 |
-
google-api-python-client==2.
|
| 5 |
wolframalpha
|
| 6 |
-
langchain==0.0.
|
| 7 |
requests==2.28.2
|
| 8 |
git+https://github.com/openai/whisper.git
|
| 9 |
-
boto3==1.26.
|
| 10 |
faiss-cpu
|
|
|
|
| 1 |
+
openai==0.26.5
|
| 2 |
+
gradio==3.19.1
|
| 3 |
google-search-results
|
| 4 |
+
google-api-python-client==2.79.0
|
| 5 |
wolframalpha
|
| 6 |
+
langchain==0.0.93
|
| 7 |
requests==2.28.2
|
| 8 |
git+https://github.com/openai/whisper.git
|
| 9 |
+
boto3==1.26.77
|
| 10 |
faiss-cpu
|