Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ def file_anzeigen(file):
|
|
140 |
ext = analyze_file(file)
|
141 |
print("ext...............................")
|
142 |
print(ext)
|
143 |
-
if (ext == "png" or ext == "PNG" or ext == "
|
144 |
return gr.Image(width=47, visible=True, interactive = False, height=47, min_width=47, show_label=False, show_share_button=False, show_download_button=False, scale = 0.5), file, file
|
145 |
else:
|
146 |
return gr.Image(width=47, visible=True, interactive = False, height=47, min_width=47, show_label=False, show_share_button=False, show_download_button=False, scale = 0.5), "data/file.png", file
|
|
|
140 |
ext = analyze_file(file)
|
141 |
print("ext...............................")
|
142 |
print(ext)
|
143 |
+
if (ext == "png" or ext == "PNG" or ext == "jpg" or ext == "jepg" or ext == "JPG" or ext == "JEPG"):
|
144 |
return gr.Image(width=47, visible=True, interactive = False, height=47, min_width=47, show_label=False, show_share_button=False, show_download_button=False, scale = 0.5), file, file
|
145 |
else:
|
146 |
return gr.Image(width=47, visible=True, interactive = False, height=47, min_width=47, show_label=False, show_share_button=False, show_download_button=False, scale = 0.5), "data/file.png", file
|