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