Spaces:
Running
on
Zero
Running
on
Zero
khang119966
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -139,12 +139,13 @@ def chat(message, history):
|
|
139 |
|
140 |
print(f'User: {question}\nAssistant: {response}')
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
148 |
|
149 |
CSS ="""
|
150 |
|
|
|
139 |
|
140 |
print(f'User: {question}\nAssistant: {response}')
|
141 |
|
142 |
+
return response
|
143 |
+
# buffer = ""
|
144 |
+
# for new_text in response:
|
145 |
+
# buffer += new_text
|
146 |
+
# generated_text_without_prompt = buffer[:]
|
147 |
+
# time.sleep(0.005)
|
148 |
+
# yield generated_text_without_prompt
|
149 |
|
150 |
CSS ="""
|
151 |
|