Adityadn commited on
Commit
18a0f73
·
verified ·
1 Parent(s): 685ced0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -6,12 +6,9 @@ import re
6
  import tempfile
7
 
8
  # Supported formats
9
- supported_formats = ['avi', 'mp4', 'mov', 'mkv', 'flv', 'wmv', 'webm', 'mpeg', 'mpg', '3gp']
10
- audio_formats = [
11
- 'mp3', 'wav', 'aac', 'flac', 'ogg', 'm4a', 'alac', 'wma', 'aiff', 'opus',
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',