operablepattern commited on
Commit
a9d7f2c
1 Parent(s): ac5b4a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def response(message, history):
20
  print(history)
21
  output = llm(message,max_tokens=32)
22
  print(output)
23
- return message
24
 
25
  gr.ChatInterface(
26
  fn=response,
 
20
  print(history)
21
  output = llm(message,max_tokens=32)
22
  print(output)
23
+ return output["choices"][0]["text"].strip()
24
 
25
  gr.ChatInterface(
26
  fn=response,