Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,7 +127,7 @@ def stream_chat(message: str, history: list, model: str, temperature: float, max
|
|
| 127 |
},
|
| 128 |
)
|
| 129 |
print(response)
|
| 130 |
-
return response
|
| 131 |
|
| 132 |
|
| 133 |
|
|
@@ -152,8 +152,8 @@ def main(message: str, history: list, model: str, temperature: float, max_new_to
|
|
| 152 |
top_k,
|
| 153 |
penalty
|
| 154 |
)
|
| 155 |
-
|
| 156 |
-
|
| 157 |
|
| 158 |
|
| 159 |
|
|
|
|
| 127 |
},
|
| 128 |
)
|
| 129 |
print(response)
|
| 130 |
+
return response['message']['content']
|
| 131 |
|
| 132 |
|
| 133 |
|
|
|
|
| 152 |
top_k,
|
| 153 |
penalty
|
| 154 |
)
|
| 155 |
+
print(response)
|
| 156 |
+
yield response
|
| 157 |
|
| 158 |
|
| 159 |
|