Spaces:
Running
Running
seawolf2357
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -29,16 +29,17 @@ def classify_and_generate_voice(uploaded_image):
|
|
29 |
# ๋ฐํ๋ ์์ฑ ๊ฒฐ๊ณผ๋ฅผ Gradio ์ธํฐํ์ด์ค๋ก ์ ๋ฌ
|
30 |
# ์: voice_result['url'] ๋๋ voice_result['audio_data'] ๋ฑ
|
31 |
return top_prediction, voice_result
|
32 |
-
|
33 |
# Gradio ์ธํฐํ์ด์ค ์์ฑ
|
34 |
iface = gr.Interface(
|
35 |
fn=classify_and_generate_voice,
|
36 |
inputs=gr.Image(type="pil"),
|
37 |
outputs=[gr.Label(), gr.Audio()],
|
38 |
title="msVision_3",
|
39 |
-
description="์ด๋ฏธ์ง๋ฅผ ์
๋ก๋ํ๋ฉด, ์ฌ๋ฌผ์ ์ธ์ํ๊ณ ํด๋นํ๋ ์์ฑ์ ์์ฑํฉ๋๋ค."
|
40 |
-
examples=["dog.jpg", "cat.jpg"]
|
41 |
)
|
42 |
|
|
|
43 |
# ์ธํฐํ์ด์ค ์คํ
|
44 |
iface.launch()
|
|
|
29 |
# ๋ฐํ๋ ์์ฑ ๊ฒฐ๊ณผ๋ฅผ Gradio ์ธํฐํ์ด์ค๋ก ์ ๋ฌ
|
30 |
# ์: voice_result['url'] ๋๋ voice_result['audio_data'] ๋ฑ
|
31 |
return top_prediction, voice_result
|
32 |
+
|
33 |
# Gradio ์ธํฐํ์ด์ค ์์ฑ
|
34 |
iface = gr.Interface(
|
35 |
fn=classify_and_generate_voice,
|
36 |
inputs=gr.Image(type="pil"),
|
37 |
outputs=[gr.Label(), gr.Audio()],
|
38 |
title="msVision_3",
|
39 |
+
description="์ด๋ฏธ์ง๋ฅผ ์
๋ก๋ํ๋ฉด, ์ฌ๋ฌผ์ ์ธ์ํ๊ณ ํด๋นํ๋ ์์ฑ์ ์์ฑํฉ๋๋ค.",
|
40 |
+
examples=["dog.jpg", "cat.jpg"] # ์์ ๋ ๋ถ๋ถ: ์ฝค๋ง ์ถ๊ฐ
|
41 |
)
|
42 |
|
43 |
+
|
44 |
# ์ธํฐํ์ด์ค ์คํ
|
45 |
iface.launch()
|