Omnibus commited on
Commit
df3482a
1 Parent(s): 5595206

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -303,7 +303,7 @@ def build_space(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t
303
 
304
  print(f"Image Uploaded to: {t_image}")
305
  except Exception as e:
306
- return gr.HTML.update(f"""{str(e)}""")
307
  try:
308
  api.upload_file(
309
  path_or_fileobj=f"./img2-{uid}.png",
@@ -317,7 +317,7 @@ def build_space(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t
317
 
318
  print(f"Image Uploaded to: {t_image2}")
319
  except Exception as e:
320
- return gr.HTML.update(f"""{str(e)}""")
321
 
322
  pass
323
  else:
 
303
 
304
  print(f"Image Uploaded to: {t_image}")
305
  except Exception as e:
306
+ return gr.HTML(f"""{str(e)}""")
307
  try:
308
  api.upload_file(
309
  path_or_fileobj=f"./img2-{uid}.png",
 
317
 
318
  print(f"Image Uploaded to: {t_image2}")
319
  except Exception as e:
320
+ return gr.HTML(f"""{str(e)}""")
321
 
322
  pass
323
  else: