Jfink09 commited on
Commit
db44c43
β€’
1 Parent(s): 57c595d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -67,9 +67,9 @@ def predict(img) -> Tuple[Dict, float]:
67
  ### 4. Gradio app ###
68
 
69
  # Create title, description and article strings
70
- title = "DeepFundus πŸ‘€"
71
- description = "A ResNet50 feature extractor computer vision model to classify funduscopic images."
72
- article = "Created with the help from [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)."
73
 
74
  # Create examples list from "examples/" directory
75
  example_list = [["examples/" + example] for example in os.listdir("examples")]
@@ -80,10 +80,10 @@ demo = gr.Interface(fn=predict, # mapping function from input to output
80
  outputs=[gr.Label(num_top_classes=3, label="Predictions"), # what are the outputs?
81
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
82
  # Create examples list from "examples/" directory
83
- examples=example_list,
84
- title=title,
85
- description=description,
86
- article=article)
87
 
88
  # Launch the demo!
89
  demo.launch()
 
67
  ### 4. Gradio app ###
68
 
69
  # Create title, description and article strings
70
+ #title = "DeepFundus πŸ‘€"
71
+ #description = "A ResNet50 feature extractor computer vision model to classify funduscopic images."
72
+ #article = "Created with the help from [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)."
73
 
74
  # Create examples list from "examples/" directory
75
  example_list = [["examples/" + example] for example in os.listdir("examples")]
 
80
  outputs=[gr.Label(num_top_classes=3, label="Predictions"), # what are the outputs?
81
  gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
82
  # Create examples list from "examples/" directory
83
+ examples=example_list)
84
+ #title=title,
85
+ #description=description,
86
+ #article=article)
87
 
88
  # Launch the demo!
89
  demo.launch()