Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -88,13 +88,12 @@ def generate(input, instruction=DEFAULT_INPUT, sampling=False, temperature=0.7,
|
|
88 |
frames = encode_gif(input)
|
89 |
content.extend(frames)
|
90 |
elif filetype == "Video":
|
91 |
-
frames = encode_video(input)
|
92 |
-
content.extend(frames)
|
93 |
-
audio
|
94 |
-
print(audio)
|
95 |
content.append(audio)
|
96 |
elif filetype == "Audio":
|
97 |
-
audio
|
98 |
content.append(audio)
|
99 |
else:
|
100 |
return "Unsupported file type."
|
|
|
88 |
frames = encode_gif(input)
|
89 |
content.extend(frames)
|
90 |
elif filetype == "Video":
|
91 |
+
# frames = encode_video(input)
|
92 |
+
# content.extend(frames)
|
93 |
+
audio = librosa.load(input, sr=16000, mono=True)
|
|
|
94 |
content.append(audio)
|
95 |
elif filetype == "Audio":
|
96 |
+
audio = librosa.load(input, sr=16000, mono=True)
|
97 |
content.append(audio)
|
98 |
else:
|
99 |
return "Unsupported file type."
|