Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,9 @@ def classify_image(img):
|
|
31 |
return predicted_label
|
32 |
|
33 |
# Gradio UI๋ฅผ ์์ฑํฉ๋๋ค.
|
34 |
-
iface = gr.Interface(fn=classify_image,
|
|
|
|
|
35 |
|
36 |
# Gradio UI๋ฅผ ์์ํฉ๋๋ค.
|
37 |
iface.launch()
|
|
|
31 |
return predicted_label
|
32 |
|
33 |
# Gradio UI๋ฅผ ์์ฑํฉ๋๋ค.
|
34 |
+
iface = gr.Interface(fn=classify_image,
|
35 |
+
inputs=gr.Image(shape=(800, 600),
|
36 |
+
outputs="label", live=True)
|
37 |
|
38 |
# Gradio UI๋ฅผ ์์ํฉ๋๋ค.
|
39 |
iface.launch()
|