whooray commited on
Commit
312410a
1 Parent(s): d92769a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,16 +26,16 @@ def inference(audio_1, audio_2):
26
 
27
  # Normalize to prevent clipping
28
  full_audio = librosa.util.normalize(full_audio)
29
-
30
  # Write the output
31
- return full_audio
32
 
33
  title = "음성 합성"
34
 
35
  demo = gr.Interface(
36
  inference,
37
  [gr.Audio(type="filepath", label="Vocals"),gr.Audio(type="filepath", label="배경음")],
38
- gr.Audio(type="numpy", label="합성 결과"),
39
  title=title,
40
  )
41
 
 
26
 
27
  # Normalize to prevent clipping
28
  full_audio = librosa.util.normalize(full_audio)
29
+ sf.write("test.wav", full_audio, sr)
30
  # Write the output
31
+ return "test.wav"
32
 
33
  title = "음성 합성"
34
 
35
  demo = gr.Interface(
36
  inference,
37
  [gr.Audio(type="filepath", label="Vocals"),gr.Audio(type="filepath", label="배경음")],
38
+ gr.Audio(type="filepath", label="합성 결과"),
39
  title=title,
40
  )
41