Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -14,10 +14,8 @@ def classify_image(img):
|
|
14 |
|
15 |
image = gr.inputs.Image(shape=(192, 192))
|
16 |
label = gr.outputs.Label()
|
17 |
-
examples =
|
18 |
-
|
19 |
-
transition_name = re.sub('./anime_character_recognizer/', '', image)
|
20 |
-
examples.append(f'./{transition_name}')
|
21 |
|
22 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
23 |
intf.launch(inline=False)
|
|
|
14 |
|
15 |
image = gr.inputs.Image(shape=(192, 192))
|
16 |
label = gr.outputs.Label()
|
17 |
+
examples = glob('./examples/*')
|
18 |
+
|
|
|
|
|
19 |
|
20 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
21 |
intf.launch(inline=False)
|