brurei commited on
Commit
b75c594
1 Parent(s): 6a4008a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -167,7 +167,7 @@ def chat(input_text, MaxToken=50, outputs=3):
167
  # number of output variations to be generated by AI model
168
  n = outputs,
169
  )
170
- return str(response)
171
 
172
  with gr.Blocks(css=css) as demo:
173
  realPath = str(os.path.dirname(os.path.realpath(__file__)))
 
167
  # number of output variations to be generated by AI model
168
  n = outputs,
169
  )
170
+ return str(response.choices[0].message)
171
 
172
  with gr.Blocks(css=css) as demo:
173
  realPath = str(os.path.dirname(os.path.realpath(__file__)))