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