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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -37,16 +37,14 @@ def respond(message, history, budget, have_items, allergies):
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
- )
47
- have_items = gr.Textbox(label="Ingredients you have (comma separated)", placeholder="pasta,tomato,garlic")
48
- allergies = gr.Textbox(label="Allergies (comma separated)", placeholder="gluten,soy")
49
- with gr.Tab("Talk with recipEASY! "):
50
- chatbot_ui = gr.ChatInterface(fn=lambda msg, hist, budget, have_items, allergies: respond(msg, hist, budget, have_items, allergies))
51
 
52
  demo.launch()
 
37
 
38
  with gr.Blocks() as demo:
39
  gr.Markdown("## RecipEASY")
40
+ budget = gr.Slider(
41
+ minimum=0, # lowest value
42
+ maximum=100, # highest value
43
+ step=1, # increment step
44
+ label="Enter Budget:"
45
+ )
46
+ have_items = gr.Textbox(label="Ingredients you have (comma separated)", placeholder="pasta,tomato,garlic")
47
+ allergies = gr.Textbox(label="Allergies (comma separated)", placeholder="gluten,soy")
48
+ chatbot_ui = gr.ChatInterface(fn=lambda msg, hist, budget, have_items, allergies: respond(msg, hist, budget, have_items, allergies))
 
 
49
 
50
  demo.launch()