jthteo commited on
Commit
8275f52
1 Parent(s): 611b3c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- def greet(name):
5
- return "What if I told you there was an app on the market.... " + name + "!!"
6
 
7
  def predict(image):
8
  predictions = pipeline(image)
@@ -12,5 +11,5 @@ gr.Interface(
12
  predict,
13
  inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
14
  outputs=gr.outputs.Label(num_top_classes=2),
15
- title="Hot Dog? Or Not?",
16
  ).launch()
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
 
5
 
6
  def predict(image):
7
  predictions = pipeline(image)
 
11
  predict,
12
  inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
13
  outputs=gr.outputs.Label(num_top_classes=2),
14
+ title="What if I told you there was an app on the market.... Hot Dog? Or Not?",
15
  ).launch()