Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -275,7 +275,7 @@ def build_space(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t
|
|
275 |
pass
|
276 |
return gr.HTML.update(f"""Invalid Direct URL: must be a Huggingface Space<br>Be sure URL is in lowercase""")
|
277 |
except Exception as e:
|
278 |
-
return gr.HTML
|
279 |
|
280 |
if t_image_url != None and t_image_url != "" and t_image==None:
|
281 |
t_image=t_image_url
|
@@ -447,12 +447,12 @@ def build_space(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t
|
|
447 |
)
|
448 |
os.remove("back_gab.html")
|
449 |
|
450 |
-
return gr.HTML
|
451 |
Your Interactive Mastodon Card Embed Link is:<br><a href="{t_link3}" target="_blank">{t_link3}</a><br>
|
452 |
Your Interactive Gab Card Embed Link is:<br><a href="{t_link2}" target="_blank">{t_link2}</a><br>
|
453 |
<center><br>''')
|
454 |
except Exception as e:
|
455 |
-
return gr.HTML
|
456 |
|
457 |
def d_im():
|
458 |
output="https://huggingface.co/spaces/portal/bin/resolve/main/ai_demo_card.png"
|
|
|
275 |
pass
|
276 |
return gr.HTML.update(f"""Invalid Direct URL: must be a Huggingface Space<br>Be sure URL is in lowercase""")
|
277 |
except Exception as e:
|
278 |
+
return gr.HTML(f"""{str(e)}""")
|
279 |
|
280 |
if t_image_url != None and t_image_url != "" and t_image==None:
|
281 |
t_image=t_image_url
|
|
|
447 |
)
|
448 |
os.remove("back_gab.html")
|
449 |
|
450 |
+
return gr.HTML(f'''<center>Your Interactive Twitter Card Embed Link is:<br><a href="{t_link}" target="_blank">{t_link}</a><br>
|
451 |
Your Interactive Mastodon Card Embed Link is:<br><a href="{t_link3}" target="_blank">{t_link3}</a><br>
|
452 |
Your Interactive Gab Card Embed Link is:<br><a href="{t_link2}" target="_blank">{t_link2}</a><br>
|
453 |
<center><br>''')
|
454 |
except Exception as e:
|
455 |
+
return gr.HTML(f"""{str(e)}""")
|
456 |
|
457 |
def d_im():
|
458 |
output="https://huggingface.co/spaces/portal/bin/resolve/main/ai_demo_card.png"
|