redjkh commited on
Commit
4a1e2b1
·
verified ·
1 Parent(s): f899867

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -31,17 +31,16 @@ def respond(message, history, budget, have_items, allergies):
31
  # Call the model
32
  response = client.chat_completion(
33
  messages=messages,
34
- max_tokens=200
35
  )
36
  return response["choices"][0]["message"]["content"].strip()
37
 
38
  with gr.Blocks() as demo:
39
- gr.Markdown("## :fried_egg: Recipe Suggestion Chatbot")
40
  with gr.Tab("Your resources: "):
41
  budget = gr.Slider(
42
  minimum=0, # lowest value
43
  maximum=100, # highest value
44
- value=50, # default starting value
45
  step=1, # increment step
46
  label="Enter Budget:"
47
  )
 
31
  # Call the model
32
  response = client.chat_completion(
33
  messages=messages,
34
+ max_tokens=500
35
  )
36
  return response["choices"][0]["message"]["content"].strip()
37
 
38
  with gr.Blocks() as demo:
39
+ gr.Markdown("## RecipEASY")
40
  with gr.Tab("Your resources: "):
41
  budget = gr.Slider(
42
  minimum=0, # lowest value
43
  maximum=100, # highest value
 
44
  step=1, # increment step
45
  label="Enter Budget:"
46
  )