jackangel commited on
Commit
de8d85a
·
verified ·
1 Parent(s): b0c258b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def chatbot(message, history):
37
  airemember += "USER: " + human + "\nASSISTANT:" + assistant+"\n\n"
38
  sendtoai = airemember + prompt
39
  result = llm(sendtoai, **generation_kwargs)
40
- text=result.choices[0].text
41
  return text
42
  app = gr.ChatInterface(chatbot)
43
  app.launch()
 
37
  airemember += "USER: " + human + "\nASSISTANT:" + assistant+"\n\n"
38
  sendtoai = airemember + prompt
39
  result = llm(sendtoai, **generation_kwargs)
40
+ text=result["choices"][0]["text"].strip()
41
  return text
42
  app = gr.ChatInterface(chatbot)
43
  app.launch()