victor commited on
Commit
1add3b8
·
1 Parent(s): 40b01ce
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def classify_pokemon(img):
52
  return dict(zip(categories, map(float, probs)))
53
 
54
  # Gradio interface setup
55
- image = gr.Image(shape=(128, 128)) # Image size should match your training data size (e.g., 128x128)
56
  label = gr.Label()
57
 
58
  # Set up Gradio interface
 
52
  return dict(zip(categories, map(float, probs)))
53
 
54
  # Gradio interface setup
55
+ image = gr.Image(type='pil') # Image size should match your training data size (e.g., 128x128)
56
  label = gr.Label()
57
 
58
  # Set up Gradio interface