annadurai003 commited on
Commit
c0ff2f6
·
1 Parent(s): 86e9601

Fix the path issue

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -56,7 +56,7 @@ description = " An [EfficinetNetB2](https://pytorch.org/vision/main/models/gener
56
  article = "Created at [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)"
57
 
58
  # Create example list
59
- example_list = [["example/"+example] for example in os.listdir("examples")]
60
 
61
 
62
  # Create the Graio demo
@@ -68,6 +68,7 @@ demo = gr.Interface(fn=predict, # maps inputs to ouputs
68
  title=title,
69
  description=description,
70
  article=article,
 
71
  cache_examples=True)
72
 
73
  # Launch the demo!
 
56
  article = "Created at [09. PyTorch Model Deployment](https://www.learnpytorch.io/09_pytorch_model_deployment/)"
57
 
58
  # Create example list
59
+ example_list = [["examples/"+example] for example in os.listdir("examples")]
60
 
61
 
62
  # Create the Graio demo
 
68
  title=title,
69
  description=description,
70
  article=article,
71
+ allowed_paths=['examples'],
72
  cache_examples=True)
73
 
74
  # Launch the demo!