Commit
·
0a88e7f
1
Parent(s):
5eb04d0
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,6 @@ def one_shot(image,input_text,gender):
|
|
35 |
sound.export("/content/audio.wav", format="wav")
|
36 |
waveform, sample_rate = torchaudio.load("/content/audio.wav")
|
37 |
torchaudio.save("/content/audio.wav", waveform, sample_rate, encoding="PCM_S", bits_per_sample=16)
|
38 |
-
return "/content/audio.wav"
|
39 |
image = Image.open(image_in)
|
40 |
image = pad_image(image)
|
41 |
image.save("/content/image_pre.png")
|
|
|
35 |
sound.export("/content/audio.wav", format="wav")
|
36 |
waveform, sample_rate = torchaudio.load("/content/audio.wav")
|
37 |
torchaudio.save("/content/audio.wav", waveform, sample_rate, encoding="PCM_S", bits_per_sample=16)
|
|
|
38 |
image = Image.open(image_in)
|
39 |
image = pad_image(image)
|
40 |
image.save("/content/image_pre.png")
|