mvaloatto commited on
Commit
f5fa581
·
1 Parent(s): bb7e069

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,8 +1,6 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- with gr.Blocks(css=".gradio-container {background-color: red}") as demo:
5
-
6
  pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
7
 
8
 
@@ -15,5 +13,6 @@ gr.Interface(
15
  predict,
16
  inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
17
  outputs=gr.outputs.Label(num_top_classes=2),
18
- title="Hot Dog? Or Not?"
 
19
  ).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
 
 
13
  predict,
14
  inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
15
  outputs=gr.outputs.Label(num_top_classes=2),
16
+ title="Hot Dog? Or Not?",
17
+ css=".gradio-container {background-color: red}")
18
  ).launch()