Spaces:
Runtime error
Runtime error
seawolf2357
commited on
Update app.py
Browse files
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
|
50 |
|
51 |
# Gradio μΈν°νμ΄μ€ μμ±
|
52 |
iface = gr.Interface(
|
53 |
fn=classify_and_generate_voice,
|
54 |
inputs=gr.Image(type="pil"),
|
55 |
-
outputs=[
|
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"]
|