remotewith commited on
Commit
afb6570
1 Parent(s): ada57e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -60,7 +60,7 @@ description = "An EfficientNetB2 feature extractor computer vision model to clas
60
  article = "(https://www.learnpytorch.io/)."
61
 
62
  # Create examples list from "examples/" directory
63
- example_list = [["examples/" + example] for example in os.listdir("examples")]
64
 
65
  # Create the Gradio demo
66
  demo = gr.Interface(fn=predict, # mapping function from input to output
@@ -68,7 +68,6 @@ demo = gr.Interface(fn=predict, # mapping function from input to output
68
  outputs=[gr.Label(num_top_classes=2, label="Predictions"), # what are the outputs?
69
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
70
  # Create examples list from "examples/" directory
71
- examples=example_list,
72
  title=title,
73
  description=description,
74
  article=article)
 
60
  article = "(https://www.learnpytorch.io/)."
61
 
62
  # Create examples list from "examples/" directory
63
+ #example_list = [["examples/" + example] for example in os.listdir("examples")]
64
 
65
  # Create the Gradio demo
66
  demo = gr.Interface(fn=predict, # mapping function from input to output
 
68
  outputs=[gr.Label(num_top_classes=2, label="Predictions"), # what are the outputs?
69
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
70
  # Create examples list from "examples/" directory
 
71
  title=title,
72
  description=description,
73
  article=article)