Update app.py
Browse files
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)
|