seawolf2357 commited on
Commit
ad7babb
ยท
verified ยท
1 Parent(s): 80f4ad8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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()