aagirre92 commited on
Commit
9ee71fe
β€’
1 Parent(s): 8bf4df8

fix to example_list and remove the share=True from demo.launch

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -54,7 +54,7 @@ import gradio as gr
54
 
55
  foodvision_mini_examples_path = "examples"
56
 
57
- example_list = [str(path) for path in foodvision_mini_examples_path.rglob("*.jpg")]
58
 
59
  # Create title, description and article
60
  title = "FoodVisionMini V0 πŸ•πŸ–πŸ£"
@@ -72,8 +72,7 @@ demo = gr.Interface(fn=predict,
72
  article=article)
73
 
74
  # Launch the demo
75
- demo.launch(debug=False,# print errors locally in local colab debug=False
76
- share=True) # run on public url
77
 
78
 
79
  # *** IMPORTANTE: The Flag button of the interface will create a folder named "flagged" that will contain the images and predictions of those images that someone has Flagged***
 
54
 
55
  foodvision_mini_examples_path = "examples"
56
 
57
+ example_list = [str(path) for path in Path(foodvision_mini_examples_path).rglob("*.jpg")]
58
 
59
  # Create title, description and article
60
  title = "FoodVisionMini V0 πŸ•πŸ–πŸ£"
 
72
  article=article)
73
 
74
  # Launch the demo
75
+ demo.launch(debug=False) # run on public url
 
76
 
77
 
78
  # *** IMPORTANTE: The Flag button of the interface will create a folder named "flagged" that will contain the images and predictions of those images that someone has Flagged***