Ali-Maq commited on
Commit
2e75d36
β€’
1 Parent(s): 1218853

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,8 +96,8 @@ with gr.Blocks() as demo:
96
  "The Calorie Estimation currently relies on Nutritionix API , In Future Iteration we would like to build our own Custom Database of Major Food Product across New York Restaurent")
97
  gr.Markdown("https://github.com/Ali-Maq/Food-Classification-Volume-Estimation-and-Calorie-Estimation/blob/main/README.md")
98
 
99
- text_button.click(query, inputs=text_input, outputs=text_output)
100
- image_button.click(get_nutrition_info, inputs=image_input, outputs=image_output)
101
  #_image_button.click(get_nutrition_info, inputs=_image_input, outputs=_image_output)
102
  with gr.Accordion("Open for More!"):
103
  gr.Markdown("🍎 Designed and built by Ali Under the Guidance of Professor Dennis Shasha")
 
96
  "The Calorie Estimation currently relies on Nutritionix API , In Future Iteration we would like to build our own Custom Database of Major Food Product across New York Restaurent")
97
  gr.Markdown("https://github.com/Ali-Maq/Food-Classification-Volume-Estimation-and-Calorie-Estimation/blob/main/README.md")
98
 
99
+ text_button.click(query, inputs=text_input, outputs=text_output,scroll_to_output=True,show_progress=True)
100
+ image_button.click(get_nutrition_info, inputs=image_input, outputs=image_output,scroll_to_output=True,show_progress=True)
101
  #_image_button.click(get_nutrition_info, inputs=_image_input, outputs=_image_output)
102
  with gr.Accordion("Open for More!"):
103
  gr.Markdown("🍎 Designed and built by Ali Under the Guidance of Professor Dennis Shasha")