Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -136,6 +136,8 @@ def add_text2(chatbot, prompt):
|
|
136 |
#nach dem Upload soll das zusätzliche Fenster mit dem image drinnen angezeigt werden
|
137 |
def file_anzeigen(file):
|
138 |
ext = analyze_file(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:
|
|
|
136 |
#nach dem Upload soll das zusätzliche Fenster mit dem image drinnen angezeigt werden
|
137 |
def file_anzeigen(file):
|
138 |
ext = analyze_file(file)
|
139 |
+
print("ext...............................")
|
140 |
+
print(ext)
|
141 |
if (ext == "png" or ext == "PNG" or ext == "jgp" or ext == "jepg"):
|
142 |
return gr.Image(width=47, visible=True, interactive = False, height=47, min_width=47, show_label=False, scale = 0.5), file, file
|
143 |
else:
|