Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def respond(message, history):
|
|
| 120 |
response = client.chat_completion(messages, max_tokens = 100, temperature = 1.3, top_p = 0.3)
|
| 121 |
|
| 122 |
#temperature and top_p control randomness
|
| 123 |
-
return response['choices'][0]['message']['content'].strip() + "Here is one recipe you could make: " + best_recipes_chunk[0] + "\n"
|
| 124 |
|
| 125 |
chatbot = gr.ChatInterface(respond, type="messages")
|
| 126 |
chatbot.launch()
|
|
|
|
| 120 |
response = client.chat_completion(messages, max_tokens = 100, temperature = 1.3, top_p = 0.3)
|
| 121 |
|
| 122 |
#temperature and top_p control randomness
|
| 123 |
+
return response['choices'][0]['message']['content'].strip() + "Here is one recipe you could make: " + str(best_recipes_chunk[0]) + "\n"
|
| 124 |
|
| 125 |
chatbot = gr.ChatInterface(respond, type="messages")
|
| 126 |
chatbot.launch()
|