Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ def generate(input=[], instruction=DEFAULT_INPUT, sampling=False, temperature=0.
|
|
62 |
content.append(img)
|
63 |
elif ext in [".mp4", ".mov", ".avi", ".mkv"]:
|
64 |
frames = encode_video(path)
|
65 |
-
content.extend(frames)
|
|
|
66 |
elif ext in [".wav", ".mp3", ".flac", ".aac"]:
|
67 |
aud, _ = librosa.load(path, sr=16000, mono=True)
|
68 |
content.append(aud)
|
|
|
62 |
content.append(img)
|
63 |
elif ext in [".mp4", ".mov", ".avi", ".mkv"]:
|
64 |
frames = encode_video(path)
|
65 |
+
# content.extend(frames)
|
66 |
+
content.append(frames)
|
67 |
elif ext in [".wav", ".mp3", ".flac", ".aac"]:
|
68 |
aud, _ = librosa.load(path, sr=16000, mono=True)
|
69 |
content.append(aud)
|