tykimos commited on
Commit
432a30b
ยท
1 Parent(s): 6ce77c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def predict_image(img):
23
  return {'์ •์ƒ': 1-prediction, '๊ฐ์—ผ': prediction}
24
 
25
  # ์ธํ„ฐํŽ˜์ด์Šค ๊ตฌ์„ฑ
26
- imagein = gr.inputs.Image()
27
  label = gr.outputs.Label(num_top_classes=2)
28
 
29
  # ์˜ˆ์ธก ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰
 
23
  return {'์ •์ƒ': 1-prediction, '๊ฐ์—ผ': prediction}
24
 
25
  # ์ธํ„ฐํŽ˜์ด์Šค ๊ตฌ์„ฑ
26
+ imagein = gr.inputs.Image(type="pil")
27
  label = gr.outputs.Label(num_top_classes=2)
28
 
29
  # ์˜ˆ์ธก ์ธํ„ฐํŽ˜์ด์Šค ์‹คํ–‰