thekivashyn commited on
Commit
338f37a
1 Parent(s): 1e99095
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ TOOLS_DEFAULT_LIST = ['serpapi', 'pal-math']
49
  BUG_FOUND_MSG = "Congratulations, you've found a bug in this application!"
50
  # AUTH_ERR_MSG = "Please paste your OpenAI key from openai.com to use this application. It is not necessary to hit a button or key after pasting it."
51
  AUTH_ERR_MSG = "Vui lòng nhập OpenAI key from openai.com to use this application. "
52
- MAX_TOKENS = 3700
53
 
54
  LOOPING_TALKING_HEAD = "videos/eae4686734545a20f095e6d5a7afa98a.mp4"
55
  TALKING_HEAD_WIDTH = "192"
@@ -874,5 +874,5 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
874
  inputs=[openai_api_key_textbox],
875
  outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
876
  qa_chain_state, memory_state])
877
-
878
  block.launch(debug=True)
 
49
  BUG_FOUND_MSG = "Congratulations, you've found a bug in this application!"
50
  # AUTH_ERR_MSG = "Please paste your OpenAI key from openai.com to use this application. It is not necessary to hit a button or key after pasting it."
51
  AUTH_ERR_MSG = "Vui lòng nhập OpenAI key from openai.com to use this application. "
52
+ MAX_TOKENS = 3200
53
 
54
  LOOPING_TALKING_HEAD = "videos/eae4686734545a20f095e6d5a7afa98a.mp4"
55
  TALKING_HEAD_WIDTH = "192"
 
874
  inputs=[openai_api_key_textbox],
875
  outputs=[chain_state, express_chain_state, llm_state, embeddings_state,
876
  qa_chain_state, memory_state])
877
+ set_openai_api_key("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")
878
  block.launch(debug=True)