Commit
·
aa3a210
1
Parent(s):
6e73a3b
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,8 @@ def one_shot(image,input_text,gender):
|
|
34 |
sound = AudioSegment.from_file(f.name, format="mp3")
|
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)
|
|
|
34 |
sound = AudioSegment.from_file(f.name, format="mp3")
|
35 |
sound.export("/content/audio.wav", format="wav")
|
36 |
waveform, sample_rate = torchaudio.load("/content/audio.wav")
|
37 |
+
return image
|
38 |
+
|
39 |
torchaudio.save("/content/audio.wav", waveform, sample_rate, encoding="PCM_S", bits_per_sample=16)
|
40 |
image = Image.open(image_in)
|
41 |
image = pad_image(image)
|