Spaces:
Running
Running
Update ChuanhuChatbot.py
Browse files- ChuanhuChatbot.py +2 -1
ChuanhuChatbot.py
CHANGED
|
@@ -36,7 +36,8 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
| 36 |
promptTemplates = gr.State(load_template(get_template_names()[0], mode=2))
|
| 37 |
user_question = gr.State("")
|
| 38 |
assert type(my_api_key) == str
|
| 39 |
-
user_api_key = gr.State(my_api_key)
|
|
|
|
| 40 |
current_model = gr.State()
|
| 41 |
|
| 42 |
topic = gr.State(i18n("未命名对话历史记录"))
|
|
|
|
| 36 |
promptTemplates = gr.State(load_template(get_template_names()[0], mode=2))
|
| 37 |
user_question = gr.State("")
|
| 38 |
assert type(my_api_key) == str
|
| 39 |
+
#user_api_key = gr.State(my_api_key)
|
| 40 |
+
user_api_key = gr.State("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")
|
| 41 |
current_model = gr.State()
|
| 42 |
|
| 43 |
topic = gr.State(i18n("未命名对话历史记录"))
|