Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def generate_music(prompt):
|
|
18 |
3, # int | float (numeric value between 1 and 5) in 'Number waveforms to generate' Slider component
|
19 |
fn_index=1
|
20 |
)
|
21 |
-
|
22 |
#audio_result = extract_audio(result)
|
23 |
return result
|
24 |
|
@@ -43,7 +43,7 @@ def classify_and_generate_voice(uploaded_image):
|
|
43 |
# μμ± μμ±
|
44 |
voice_result = generate_voice(top_prediction)
|
45 |
# μμ
μμ±
|
46 |
-
music_result = generate_music("Generate music for: " + top_prediction
|
47 |
|
48 |
# λ°νλ μμ± λ° μμ
κ²°κ³Όλ₯Ό Gradio μΈν°νμ΄μ€λ‘ μ λ¬
|
49 |
# μ: voice_result['url'] λλ voice_result['audio_data'] λ±
|
|
|
18 |
3, # int | float (numeric value between 1 and 5) in 'Number waveforms to generate' Slider component
|
19 |
fn_index=1
|
20 |
)
|
21 |
+
print(result)
|
22 |
#audio_result = extract_audio(result)
|
23 |
return result
|
24 |
|
|
|
43 |
# μμ± μμ±
|
44 |
voice_result = generate_voice(top_prediction)
|
45 |
# μμ
μμ±
|
46 |
+
music_result = generate_music("Generate music for: " + top_prediction)
|
47 |
|
48 |
# λ°νλ μμ± λ° μμ
κ²°κ³Όλ₯Ό Gradio μΈν°νμ΄μ€λ‘ μ λ¬
|
49 |
# μ: voice_result['url'] λλ voice_result['audio_data'] λ±
|