Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def respond(message, history):
|
|
| 11 |
|
| 12 |
messages = [
|
| 13 |
{"role":"system",
|
| 14 |
-
"content":"You are a
|
| 15 |
}
|
| 16 |
]
|
| 17 |
|
|
@@ -25,5 +25,7 @@ def respond(message, history):
|
|
| 25 |
return response['choices'][0]['message']['content'].strip()
|
| 26 |
|
| 27 |
|
| 28 |
-
chatbot = gr.ChatInterface(respond, type="messages")
|
|
|
|
|
|
|
| 29 |
chatbot.launch()
|
|
|
|
| 11 |
|
| 12 |
messages = [
|
| 13 |
{"role":"system",
|
| 14 |
+
"content":"You are a chatbox trained to give me recipes on healthy food and their nutrition ;) "
|
| 15 |
}
|
| 16 |
]
|
| 17 |
|
|
|
|
| 25 |
return response['choices'][0]['message']['content'].strip()
|
| 26 |
|
| 27 |
|
| 28 |
+
chatbot = gr.ChatInterface(respond, type="messages", temperature=1.3, top_p = 0.5)
|
| 29 |
+
#temperature and top_p controls randomness
|
| 30 |
+
|
| 31 |
chatbot.launch()
|