fffiloni commited on
Commit
db5575b
1 Parent(s): 56a6029

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -78,7 +78,8 @@ def call_api(message, openai_api_key):
78
 
79
  print(response)
80
 
81
- return str(response.choices[0].text).split("\n",2)[2]
 
82
 
83
  def clean_components():
84
  return gr.Audio.update(value=None), gr.HTML.update(visible=False), gr.Textbox.update(visible=False), gr.Video.update(value=None), gr.Group.update(visible=False), gr.Button.update(visible=False)
 
78
 
79
  print(response)
80
 
81
+ #return str(response.choices[0].text).split("\n",2)[2]
82
+ return str(response.choices[0].text)
83
 
84
  def clean_components():
85
  return gr.Audio.update(value=None), gr.HTML.update(visible=False), gr.Textbox.update(visible=False), gr.Video.update(value=None), gr.Group.update(visible=False), gr.Button.update(visible=False)