Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -246,7 +246,7 @@ def process_input(user_input, history, chatbot, agent_name, system_prompt, tempe
|
|
246 |
"""Processes user input and updates the chatbot."""
|
247 |
purpose = "General"
|
248 |
history = history + [(user_input, "")]
|
249 |
-
chatbot.append(user_input
|
250 |
|
251 |
for response in run(
|
252 |
purpose,
|
@@ -258,7 +258,7 @@ def process_input(user_input, history, chatbot, agent_name, system_prompt, tempe
|
|
258 |
top_p=top_p,
|
259 |
repetition_penalty=repetition_penalty,
|
260 |
):
|
261 |
-
chatbot.append(
|
262 |
yield chatbot
|
263 |
|
264 |
with gr.Blocks() as iface:
|
|
|
246 |
"""Processes user input and updates the chatbot."""
|
247 |
purpose = "General"
|
248 |
history = history + [(user_input, "")]
|
249 |
+
chatbot.append(user_input)
|
250 |
|
251 |
for response in run(
|
252 |
purpose,
|
|
|
258 |
top_p=top_p,
|
259 |
repetition_penalty=repetition_penalty,
|
260 |
):
|
261 |
+
chatbot.append(response)
|
262 |
yield chatbot
|
263 |
|
264 |
with gr.Blocks() as iface:
|