Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -298,7 +298,7 @@ def build_space(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t
|
|
298 |
token=token,
|
299 |
repo_type="space",
|
300 |
)
|
301 |
-
t_image = f"https://{repo_name.replace('/','-').replace('_','-')}.hf.space/card_im.png"
|
302 |
os.remove(f"./img-{uid}.png")
|
303 |
|
304 |
print(f"Image Uploaded to: {t_image}")
|
@@ -312,7 +312,7 @@ def build_space(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t
|
|
312 |
token=token,
|
313 |
repo_type="space",
|
314 |
)
|
315 |
-
t_image2 = f"https://{repo_name.replace('/','-').replace('_','-')}.hf.space/card_im_crop.png"
|
316 |
os.remove(f"./img2-{uid}.png")
|
317 |
|
318 |
print(f"Image Uploaded to: {t_image2}")
|
|
|
298 |
token=token,
|
299 |
repo_type="space",
|
300 |
)
|
301 |
+
t_image = f"https://{repo_name.replace('/','-').replace('_','-')}.static.hf.space/card_im.png"
|
302 |
os.remove(f"./img-{uid}.png")
|
303 |
|
304 |
print(f"Image Uploaded to: {t_image}")
|
|
|
312 |
token=token,
|
313 |
repo_type="space",
|
314 |
)
|
315 |
+
t_image2 = f"https://{repo_name.replace('/','-').replace('_','-')}.static.hf.space/card_im_crop.png"
|
316 |
os.remove(f"./img2-{uid}.png")
|
317 |
|
318 |
print(f"Image Uploaded to: {t_image2}")
|