Spaces:
Runtime error
Runtime error
Commit
·
07257ae
1
Parent(s):
136a4ca
Update app.py
Browse files
app.py
CHANGED
@@ -121,13 +121,14 @@ def chat():
|
|
121 |
message = user_message
|
122 |
|
123 |
prompt = format_chat_prompt(message, chat_history, instructions)
|
124 |
-
chat_history = chat_history + [[message, ""]]
|
125 |
model_output = run_model(
|
126 |
prompt,
|
127 |
temperature=temperature,
|
128 |
top_p=top_p,
|
129 |
)
|
130 |
-
|
|
|
|
|
131 |
# acc_text = ""
|
132 |
# for idx, response in enumerate(stream):
|
133 |
# text_token = response.token.text
|
|
|
121 |
message = user_message
|
122 |
|
123 |
prompt = format_chat_prompt(message, chat_history, instructions)
|
|
|
124 |
model_output = run_model(
|
125 |
prompt,
|
126 |
temperature=temperature,
|
127 |
top_p=top_p,
|
128 |
)
|
129 |
+
chat_history = chat_history + [[message, model_output]]
|
130 |
+
yield chat_history
|
131 |
+
return
|
132 |
# acc_text = ""
|
133 |
# for idx, response in enumerate(stream):
|
134 |
# text_token = response.token.text
|