Tram-Anh commited on
Commit
70f91ec
·
verified ·
1 Parent(s): 4e4de63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -11,7 +11,7 @@ def respond(message, history):
11
 
12
  messages = [
13
  {"role":"system",
14
- "content":"You are a friendly chatbot! ;) "
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()