fffiloni commited on
Commit
9186464
1 Parent(s): 1f944a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def style_transfer(prompt, negative_prompt, audio_input):
52
  wav = wav_bytes_from_spectrogram_image(new_spectro[0])
53
  with open("output.wav", "wb") as f:
54
  f.write(wav[0].getbuffer())
55
- return new_spectro, 'output.wav', gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
56
 
57
  def image_from_spectrogram(
58
  spectrogram: np.ndarray, max_volume: float = 50, power_for_image: float = 0.25
 
52
  wav = wav_bytes_from_spectrogram_image(new_spectro[0])
53
  with open("output.wav", "wb") as f:
54
  f.write(wav[0].getbuffer())
55
+ return new_spectro[0], 'output.wav', gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
56
 
57
  def image_from_spectrogram(
58
  spectrogram: np.ndarray, max_volume: float = 50, power_for_image: float = 0.25