jackangel commited on
Commit
b0c258b
1 Parent(s): 9ab294b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- print(result)
41
- return result
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
41
+ return text
42
  app = gr.ChatInterface(chatbot)
43
  app.launch()