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