Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ model_0.load_state_dict(torch.load("pytorch_num_classifier_final_model_with_EMNI
|
|
| 78 |
title = "Number Classifier Minimal"
|
| 79 |
description = "An Image feature extractor computer vision model to classify images of handwritten digits."
|
| 80 |
article = "Created at [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)."
|
| 81 |
-
example_list = [[str(filepath)] for filepath in random.sample(glob("examples/*"), k=
|
| 82 |
example_list
|
| 83 |
|
| 84 |
|
|
@@ -91,4 +91,4 @@ demo = gr.Interface(fn=predict_number,
|
|
| 91 |
article=article)
|
| 92 |
|
| 93 |
|
| 94 |
-
demo.launch(
|
|
|
|
| 78 |
title = "Number Classifier Minimal"
|
| 79 |
description = "An Image feature extractor computer vision model to classify images of handwritten digits."
|
| 80 |
article = "Created at [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)."
|
| 81 |
+
example_list = [[str(filepath)] for filepath in random.sample(glob("examples/*"), k=10)]
|
| 82 |
example_list
|
| 83 |
|
| 84 |
|
|
|
|
| 91 |
article=article)
|
| 92 |
|
| 93 |
|
| 94 |
+
demo.launch()
|