Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -134,11 +134,11 @@ with gr.Blocks() as demo:
|
|
134 |
#temperature = 0.7
|
135 |
#top_p = 0.95
|
136 |
|
137 |
-
def submit_message(user_message, chat_history,
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
|
143 |
submit_button.click(
|
144 |
submit_message,
|
|
|
134 |
#temperature = 0.7
|
135 |
#top_p = 0.95
|
136 |
|
137 |
+
def submit_message(user_message, chat_history, language):
|
138 |
+
assistant_reply = respond(user_message, language, max_tokens, temperature, top_p)
|
139 |
+
chat_history = chat_history + [[user_message, assistant_reply]]
|
140 |
+
return "", chat_history
|
141 |
+
|
142 |
|
143 |
submit_button.click(
|
144 |
submit_message,
|