andy-wyx commited on
Commit
e3307dd
·
1 Parent(s): 2a1e3a6

upload new fossil examples

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -220,7 +220,7 @@ def explain_image(input_image,model_name,explain_method,nb_samples):
220
 
221
  def setup_examples():
222
  paths = sorted(pathlib.Path('images/').rglob('*.jpg'))
223
- samples = [path.as_posix() for path in paths if 'selected fossil examples' in str(path)][:12]
224
  examples_fossils = gr.Examples(samples, inputs=input_image,examples_per_page=8,label='Fossils Examples from the dataset')
225
  samples=[[path.as_posix()] for path in paths if 'leaves' in str(path) ][:19]
226
  examples_leaves = gr.Examples(samples, inputs=input_image,examples_per_page=8,label='Leaves Examples from the dataset')
 
220
 
221
  def setup_examples():
222
  paths = sorted(pathlib.Path('images/').rglob('*.jpg'))
223
+ samples = [path.as_posix() for path in paths if 'selected fossil examples' in str(path)][:23]
224
  examples_fossils = gr.Examples(samples, inputs=input_image,examples_per_page=8,label='Fossils Examples from the dataset')
225
  samples=[[path.as_posix()] for path in paths if 'leaves' in str(path) ][:19]
226
  examples_leaves = gr.Examples(samples, inputs=input_image,examples_per_page=8,label='Leaves Examples from the dataset')