Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,12 +6,9 @@ import re
|
|
6 |
import tempfile
|
7 |
|
8 |
# Supported formats
|
9 |
-
supported_formats = ['
|
10 |
-
audio_formats = [
|
11 |
-
|
12 |
-
'ape', 'caf', 'pcm', 'dts', 'tta', 'amr', 'mid', 'spx', 'wv', 'ra', 'tak'
|
13 |
-
]
|
14 |
-
gif_formats = ['gif']
|
15 |
image_formats = sorted(Image.SAVE.keys()) or ['BLP', 'BMP', 'BUFR', 'DDS', 'DIB', 'EPS',
|
16 |
'GIF', 'GRIB', 'HDF5', 'ICNS', 'ICO', 'IM',
|
17 |
'JPEG', 'JPEG2000', 'MPO', 'MSP', 'PALM', 'PCX',
|
|
|
6 |
import tempfile
|
7 |
|
8 |
# Supported formats
|
9 |
+
supported_formats = sorted(['3GP', 'ASF', 'AVI', 'DIVX', 'FLV', 'M2TS', 'M4V', 'MKV', 'MOV', 'MP4', 'MPEG', 'MPG', 'MTS', 'TS', 'VOB', 'WEBM', 'WMV', 'XVID'])
|
10 |
+
audio_formats = sorted(['MP3', 'WAV', 'AAC', 'FLAC', 'OGG', 'M4A', 'ALAC', 'WMA', 'AIFF', 'OPUS', 'APE', 'CAF', 'PCM', 'DTS', 'TTA', 'AMR', 'MID', 'SPX', 'WV', 'RA', 'TAK'])
|
11 |
+
gif_formats = ['GIF']
|
|
|
|
|
|
|
12 |
image_formats = sorted(Image.SAVE.keys()) or ['BLP', 'BMP', 'BUFR', 'DDS', 'DIB', 'EPS',
|
13 |
'GIF', 'GRIB', 'HDF5', 'ICNS', 'ICO', 'IM',
|
14 |
'JPEG', 'JPEG2000', 'MPO', 'MSP', 'PALM', 'PCX',
|