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