Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +1 -1
app/main.py
CHANGED
@@ -52,7 +52,7 @@ async def chat(message: ChatMessage):
|
|
52 |
response_text = response.get('generated_text', '')
|
53 |
print(response_text)
|
54 |
|
55 |
-
return {"response": response_text}
|
56 |
|
57 |
if __name__ == "__main__":
|
58 |
import uvicorn
|
|
|
52 |
response_text = response.get('generated_text', '')
|
53 |
print(response_text)
|
54 |
|
55 |
+
return {"response": response_text[-1]['content']}
|
56 |
|
57 |
if __name__ == "__main__":
|
58 |
import uvicorn
|