Spaces:
Runtime error
Runtime error
justest
commited on
Commit
·
492400e
1
Parent(s):
2ed2501
update default model
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ with gr.Blocks() as demo:
|
|
97 |
def change_prompt(prompt_set_name, prompt_name):
|
98 |
return gr.update(value=prompt_set_list[prompt_set_name][prompt_name])
|
99 |
|
100 |
-
def user(user_message, history):
|
101 |
return gr.update(value="", interactive=False), history + [[user_message, None]]
|
102 |
|
103 |
def bot(history, model_name, provider_name, system_msg, chat_mode):
|
|
|
97 |
def change_prompt(prompt_set_name, prompt_name):
|
98 |
return gr.update(value=prompt_set_list[prompt_set_name][prompt_name])
|
99 |
|
100 |
+
def user(user_message, history = []):
|
101 |
return gr.update(value="", interactive=False), history + [[user_message, None]]
|
102 |
|
103 |
def bot(history, model_name, provider_name, system_msg, chat_mode):
|