Adityadn commited on
Commit
255e40e
·
verified ·
1 Parent(s): 2a7f263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,11 +5,11 @@ import os
5
  gr.themes.Soft()
6
 
7
  # Ambil daftar format gambar yang didukung oleh Pillow
8
- supported_formats = (for data in sorted(Image.SAVE.keys()) or ['BLP', 'BMP', 'BUFR', 'DDS', 'DIB', 'EPS',
9
  'GIF', 'GRIB', 'HDF5', 'ICNS', 'ICO', 'IM',
10
  'JPEG', 'JPEG2000', 'MPO', 'MSP', 'PALM', 'PCX',
11
  'PDF', 'PNG', 'PPM', 'SGI', 'SPIDER', 'TGA', 'TIFF',
12
- 'WEBP', 'WMX', 'XBM'] not in ['BLP', 'BUFR', 'GRIB', 'HDF5', 'MSP', 'PALM', 'WMV', 'XBM'])
13
 
14
  def convert_image(image, target_format):
15
  try:
 
5
  gr.themes.Soft()
6
 
7
  # Ambil daftar format gambar yang didukung oleh Pillow
8
+ supported_formats = (for data in (sorted(Image.SAVE.keys()) or ['BLP', 'BMP', 'BUFR', 'DDS', 'DIB', 'EPS',
9
  'GIF', 'GRIB', 'HDF5', 'ICNS', 'ICO', 'IM',
10
  'JPEG', 'JPEG2000', 'MPO', 'MSP', 'PALM', 'PCX',
11
  'PDF', 'PNG', 'PPM', 'SGI', 'SPIDER', 'TGA', 'TIFF',
12
+ 'WEBP', 'WMX', 'XBM']) if data not in ['BLP', 'BUFR', 'GRIB', 'HDF5', 'MSP', 'PALM', 'WMV', 'XBM'])
13
 
14
  def convert_image(image, target_format):
15
  try: