sanmmarr29 commited on
Commit
13993db
·
verified ·
1 Parent(s): 12eddd2

Update app/main.py

Browse files
Files changed (1) hide show
  1. 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