arpandesign commited on
Commit
2a96074
·
verified ·
1 Parent(s): fc099a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=25)]
82
  example_list
83
 
84
 
@@ -91,4 +91,4 @@ demo = gr.Interface(fn=predict_number,
91
  article=article)
92
 
93
 
94
- demo.launch(cache_examples=False)
 
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()