Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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
|
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:
|