seawolf2357 commited on
Commit
8327cee
ยท
verified ยท
1 Parent(s): 45d3d41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,10 +8,10 @@ def classify_image(image):
8
  predictions = model(image)
9
  return predictions
10
 
11
- # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ƒ์„ฑ
12
  iface = gr.Interface(fn=classify_image,
13
- inputs=gr.inputs.Image(shape=(224, 224)),
14
- outputs=gr.outputs.Label(num_top_classes=3),
15
  title="์ด๋ฏธ์ง€ ๋ถ„๋ฅ˜๊ธฐ",
16
  description="์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•˜๋ฉด, ์‚ฌ๋ฌผ์„ ์ธ์‹ํ•˜๊ณ  ์„ค๋ช…์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.")
17
 
 
8
  predictions = model(image)
9
  return predictions
10
 
11
+ # Gradio ์ธํ„ฐํŽ˜์ด์Šค ์ƒ์„ฑ (์ˆ˜์ •๋œ ๋ถ€๋ถ„)
12
  iface = gr.Interface(fn=classify_image,
13
+ inputs=gr.Image(shape=(224, 224)),
14
+ outputs=gr.Label(num_top_classes=3),
15
  title="์ด๋ฏธ์ง€ ๋ถ„๋ฅ˜๊ธฐ",
16
  description="์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•˜๋ฉด, ์‚ฌ๋ฌผ์„ ์ธ์‹ํ•˜๊ณ  ์„ค๋ช…์„ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.")
17