Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -300,7 +300,7 @@ def simple_chat(message: dict, temperature: float = 0.8, max_length: int = 4096,
|
|
| 300 |
print("--------------")
|
| 301 |
|
| 302 |
|
| 303 |
-
return StreamingResponse(new_text
|
| 304 |
|
| 305 |
except Exception as e:
|
| 306 |
return PlainTextResponse(f"Error: {str(e)}")
|
|
|
|
| 300 |
print("--------------")
|
| 301 |
|
| 302 |
|
| 303 |
+
return StreamingResponse(new_text, media_type="text/plain")
|
| 304 |
|
| 305 |
except Exception as e:
|
| 306 |
return PlainTextResponse(f"Error: {str(e)}")
|