Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,13 +153,9 @@ def main(message: str, history: list, model: str, temperature: float, max_new_to
|
|
| 153 |
penalty
|
| 154 |
)
|
| 155 |
|
| 156 |
-
|
|
|
|
| 157 |
|
| 158 |
-
buffer = ""
|
| 159 |
-
for chunk in response:
|
| 160 |
-
buffer += chunk["message"]["content"]
|
| 161 |
-
yield buffer
|
| 162 |
-
|
| 163 |
|
| 164 |
chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
|
| 165 |
|
|
|
|
| 153 |
penalty
|
| 154 |
)
|
| 155 |
|
| 156 |
+
yield response['message']['content']
|
| 157 |
+
|
| 158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
|
| 161 |
|