alexkueck commited on
Commit
0e9f134
1 Parent(s): 2d3dc54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -136,10 +136,10 @@ 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:
142
- return gr.File(visible=True, interactive = False, height=47, min_width=47, show_label=False, scale = 0.8), file, file
143
 
144
  def file_loeschen():
145
  return None, gr.File(visible = False)
 
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:
142
+ return gr.File(visible=True, interactive = False, height=47, min_width=47, show_label=False, scale = 0.8), file, file
143
 
144
  def file_loeschen():
145
  return None, gr.File(visible = False)