nagasurendra commited on
Commit
d381a2d
·
verified ·
1 Parent(s): e32f1e1

Update components/preferences_allergies.py

Browse files
components/preferences_allergies.py CHANGED
@@ -14,4 +14,6 @@ def preferences_page():
14
  gr.Markdown("### Set Your Preferences and Allergies")
15
  preferences = gr.Dropdown(["Vegetarian", "Vegan", "Halal", "Full Menu"], label="Preferences")
16
  allergies = gr.Textbox(label="Allergies (comma-separated)")
17
- gr.Button("Save Preferences").click(save_preferences, inputs=[preferences, allergies], outputs="Status")
 
 
 
14
  gr.Markdown("### Set Your Preferences and Allergies")
15
  preferences = gr.Dropdown(["Vegetarian", "Vegan", "Halal", "Full Menu"], label="Preferences")
16
  allergies = gr.Textbox(label="Allergies (comma-separated)")
17
+ status_label = gr.Label(label="Status") # Use a Label for output
18
+ save_button = gr.Button("Save Preferences")
19
+ save_button.click(save_preferences, inputs=[preferences, allergies], outputs=status_label)