Disguised commited on
Commit
5422f27
1 Parent(s): d5f5088

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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 = ['./C.C.jpg']
18
- for image in glob('./anime_character_recognizer/examples/*'):
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)