Spaces:
Sleeping
Sleeping
Tafazzul-Nadeeem
commited on
Commit
·
0b38b77
1
Parent(s):
f0d8b13
Prescription feature done
Browse files
app.py
CHANGED
|
@@ -141,11 +141,11 @@ with gr.Blocks() as demo:
|
|
| 141 |
response = agent3_llm_agent(clean_messages)
|
| 142 |
#######################################################################
|
| 143 |
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
return history
|
| 147 |
|
| 148 |
-
|
|
|
|
| 149 |
# for character in response:
|
| 150 |
# history[-1]['content'] += character
|
| 151 |
# time.sleep(0.005)
|
|
|
|
| 141 |
response = agent3_llm_agent(clean_messages)
|
| 142 |
#######################################################################
|
| 143 |
|
| 144 |
+
history.append({"role": "assistant", "content": response})
|
| 145 |
+
|
|
|
|
| 146 |
|
| 147 |
+
return history
|
| 148 |
+
# # Simulate streaming response
|
| 149 |
# for character in response:
|
| 150 |
# history[-1]['content'] += character
|
| 151 |
# time.sleep(0.005)
|