salma-remyx commited on
Commit
0c890d5
1 Parent(s): 0323c1e

fix example imgs

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -30,11 +30,13 @@ import numpy as np
30
  import gradio as gr
31
 
32
  import spacy
 
33
  try:
34
  nlp = spacy.load("en_core_web_sm")
35
  except OSError:
36
  # Download the model if it's not already available
37
  from spacy.cli import download
 
38
  download("en_core_web_sm")
39
  nlp = spacy.load("en_core_web_sm")
40
 
@@ -159,7 +161,13 @@ def build_demo():
159
  )
160
 
161
  gr.Examples(
162
- examples=[["./assets/warehouse_rgb.jpg"], ["./assets/spooky_doggy.png"]],
 
 
 
 
 
 
163
  inputs=image_input,
164
  label="Example Images",
165
  examples_per_page=5,
 
30
  import gradio as gr
31
 
32
  import spacy
33
+
34
  try:
35
  nlp = spacy.load("en_core_web_sm")
36
  except OSError:
37
  # Download the model if it's not already available
38
  from spacy.cli import download
39
+
40
  download("en_core_web_sm")
41
  nlp = spacy.load("en_core_web_sm")
42
 
 
161
  )
162
 
163
  gr.Examples(
164
+ examples=[
165
+ ["./examples/warehouse_rgb.jpg"],
166
+ ["./examples/spooky_doggy.png"],
167
+ ["./examples/bee_and_flower.jpg"],
168
+ ["./examples/gears.png"],
169
+ ["./examples/road-through-dense-forest.jpg"],
170
+ ],
171
  inputs=image_input,
172
  label="Example Images",
173
  examples_per_page=5,