Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def predict(img) -> Tuple[Dict, float]:
|
|
| 64 |
### 4. Gradio app ###
|
| 65 |
|
| 66 |
# Create title, description and article strings
|
| 67 |
-
title = "Retinal Disease Detection"
|
| 68 |
#description = "A ResNet50 feature extractor computer vision model to classify funduscopic images."
|
| 69 |
#article = "Created with the help from [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)."
|
| 70 |
|
|
@@ -77,7 +77,7 @@ demo = gr.Interface(fn=predict, # mapping function from input to output
|
|
| 77 |
outputs=[gr.Label(num_top_classes=4, label="Predictions"), # what are the outputs?
|
| 78 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
| 79 |
# Create examples list from "examples/" directory
|
| 80 |
-
title=title,
|
| 81 |
examples=example_list,
|
| 82 |
css="""
|
| 83 |
.gradio-container {background-color: #0B0F19}
|
|
|
|
| 64 |
### 4. Gradio app ###
|
| 65 |
|
| 66 |
# Create title, description and article strings
|
| 67 |
+
#title = "Retinal Disease Detection"
|
| 68 |
#description = "A ResNet50 feature extractor computer vision model to classify funduscopic images."
|
| 69 |
#article = "Created with the help from [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)."
|
| 70 |
|
|
|
|
| 77 |
outputs=[gr.Label(num_top_classes=4, label="Predictions"), # what are the outputs?
|
| 78 |
gr.Number(label="Prediction time (s)")], # our fn has two outputs, therefore we have two outputs
|
| 79 |
# Create examples list from "examples/" directory
|
| 80 |
+
#title=title,
|
| 81 |
examples=example_list,
|
| 82 |
css="""
|
| 83 |
.gradio-container {background-color: #0B0F19}
|