Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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
|