Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,9 @@ def mr_bot(premise, tokens, temperature):
|
|
| 58 |
)
|
| 59 |
store_message(premise=premise, temperature=temperature, response=response['choices'][0]['message']['content'])
|
| 60 |
|
| 61 |
-
return response['choices'][0]["text"]
|
|
|
|
|
|
|
| 62 |
|
| 63 |
# Gradio App interface and login set up
|
| 64 |
description = "Use the examples below to see how different prompts generate different results."
|
|
|
|
| 58 |
)
|
| 59 |
store_message(premise=premise, temperature=temperature, response=response['choices'][0]['message']['content'])
|
| 60 |
|
| 61 |
+
# return response['choices'][0]["text"]
|
| 62 |
+
return response.choices[0].message.content
|
| 63 |
+
|
| 64 |
|
| 65 |
# Gradio App interface and login set up
|
| 66 |
description = "Use the examples below to see how different prompts generate different results."
|