seawolf2357 commited on
Commit
7d07c61
Β·
verified Β·
1 Parent(s): 960f07f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,13 +46,13 @@ def classify_and_generate_voice(uploaded_image):
46
 
47
  # λ°˜ν™˜λœ μŒμ„± 및 μŒμ•… κ²°κ³Όλ₯Ό Gradio μΈν„°νŽ˜μ΄μŠ€λ‘œ 전달
48
  # 예: voice_result['url'] λ˜λŠ” voice_result['audio_data'] λ“±
49
- return caption, top_prediction, voice_result, music_result
50
 
51
  # Gradio μΈν„°νŽ˜μ΄μŠ€ 생성
52
  iface = gr.Interface(
53
  fn=classify_and_generate_voice,
54
  inputs=gr.Image(type="pil"),
55
- outputs=[ gr.Label(), gr.Audio(), gr.Audio()],
56
  title="msVision_3",
57
  description="이미지λ₯Ό μ—…λ‘œλ“œν•˜λ©΄, 사물을 μΈμ‹ν•˜κ³  ν•΄λ‹Ήν•˜λŠ” μŒμ„± 및 μŒμ•…μ„ μƒμ„±ν•©λ‹ˆλ‹€.(recognizes object and generate Voice&Music)",
58
  examples=["dog.jpg", "cat.png", "cafe.jpg"]
 
46
 
47
  # λ°˜ν™˜λœ μŒμ„± 및 μŒμ•… κ²°κ³Όλ₯Ό Gradio μΈν„°νŽ˜μ΄μŠ€λ‘œ 전달
48
  # 예: voice_result['url'] λ˜λŠ” voice_result['audio_data'] λ“±
49
+ return top_prediction, voice_result, music_result
50
 
51
  # Gradio μΈν„°νŽ˜μ΄μŠ€ 생성
52
  iface = gr.Interface(
53
  fn=classify_and_generate_voice,
54
  inputs=gr.Image(type="pil"),
55
+ outputs=[gr.Label(), gr.Audio(), gr.Audio()],
56
  title="msVision_3",
57
  description="이미지λ₯Ό μ—…λ‘œλ“œν•˜λ©΄, 사물을 μΈμ‹ν•˜κ³  ν•΄λ‹Ήν•˜λŠ” μŒμ„± 및 μŒμ•…μ„ μƒμ„±ν•©λ‹ˆλ‹€.(recognizes object and generate Voice&Music)",
58
  examples=["dog.jpg", "cat.png", "cafe.jpg"]