Spaces:
Sleeping
Sleeping
upload new fossil examples
Browse files
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)][:
|
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')
|