jflo commited on
Commit
77a2024
1 Parent(s): be2c3da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -46,11 +46,14 @@ def classify_img(img):
46
  print(model_output)
47
  return model_output
48
 
 
 
49
  demo = gr.Interface(classify_img,
50
  inputs = gr.inputs.Image(type="pil"),
51
  outputs = gr.outputs.Label(type="confidences",num_top_classes=3),
52
  title = "Food Classifier!",
53
- description="Insert food image you would like to classify! Returns confidence % for the top three categories <br> Categories: Apple Pie, Bibimbap, Cannoli, Edamame, Falafel, French Toast, Ice Cream, Ramen, Sushi, Tiramisu"
 
54
  )
55
 
56
  demo.launch()
 
46
  print(model_output)
47
  return model_output
48
 
49
+ css = "footer {visibility: none}"
50
+
51
  demo = gr.Interface(classify_img,
52
  inputs = gr.inputs.Image(type="pil"),
53
  outputs = gr.outputs.Label(type="confidences",num_top_classes=3),
54
  title = "Food Classifier!",
55
+ description = "Insert food image you would like to classify! Returns confidence % for the top three categories <br> Categories: Apple Pie, Bibimbap, Cannoli, Edamame, Falafel, French Toast, Ice Cream, Ramen, Sushi, Tiramisu",
56
+ css = css
57
  )
58
 
59
  demo.launch()