manavshekar3340 commited on
Commit
58fdc79
·
verified ·
1 Parent(s): 34b03f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import gradio as gr
 
 
2
  model = gr.load("models/dima806/indian_food_image_detection")
3
 
4
  # Create a Gradio interface with the custom title
@@ -7,12 +9,8 @@ iface = gr.Interface(
7
  inputs=gr.Image(type="filepath"),
8
  outputs="label",
9
  title="CAPSTONE",
10
- description="Upload an image of Indian food to detect what it is.",
11
- examples=[
12
- ["examples/example1.jpg"],
13
- ["examples/example2.jpg"]
14
- ]
15
  )
16
 
17
  # Launch the Gradio interface
18
- iface.launch()
 
1
  import gradio as gr
2
+
3
+ # Load the pre-trained model from Hugging Face
4
  model = gr.load("models/dima806/indian_food_image_detection")
5
 
6
  # Create a Gradio interface with the custom title
 
9
  inputs=gr.Image(type="filepath"),
10
  outputs="label",
11
  title="CAPSTONE",
12
+ description="Upload an image of Indian food to detect what it is."
 
 
 
 
13
  )
14
 
15
  # Launch the Gradio interface
16
+ iface.launch()