Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -33,14 +33,15 @@ description = 'FoodVision is an image classification model based on EfficientNet
|
|
33 |
###############################
|
34 |
|
35 |
example_list = [['examples/' + example] for example in os.listdir('examples')] ##############
|
36 |
-
|
|
|
37 |
demo = gr.Interface(
|
38 |
fn = predict,
|
39 |
inputs = gr.Image(type = 'pil'),
|
40 |
outputs = [gr.Textbox()],
|
41 |
-
|
42 |
title = title,
|
43 |
description = description
|
44 |
)
|
45 |
|
46 |
-
demo.launch()
|
|
|
33 |
###############################
|
34 |
|
35 |
example_list = [['examples/' + example] for example in os.listdir('examples')] ##############
|
36 |
+
for example in example_list:
|
37 |
+
print(example)
|
38 |
demo = gr.Interface(
|
39 |
fn = predict,
|
40 |
inputs = gr.Image(type = 'pil'),
|
41 |
outputs = [gr.Textbox()],
|
42 |
+
examples = example_list,
|
43 |
title = title,
|
44 |
description = description
|
45 |
)
|
46 |
|
47 |
+
demo.launch(debug = True)
|