Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -380,7 +380,7 @@ image_urls = [
|
|
380 |
"https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/Djx-k4WOxzlXEQPzllP3r.png"
|
381 |
]
|
382 |
|
383 |
-
UseSidebarArtCard=
|
384 |
if UseSidebarArtCard:
|
385 |
# Select a random URL from the list
|
386 |
selected_image_url = random.choice(image_urls)
|
@@ -397,8 +397,8 @@ if UseSidebarArtCard:
|
|
397 |
st.markdown(f"![image](data:image/png;base64,{selected_image_base64})")
|
398 |
|
399 |
# Create and display the download link
|
400 |
-
download_link = create_download_link("downloaded_image.png", selected_image_base64)
|
401 |
-
st.markdown(download_link, unsafe_allow_html=True)
|
402 |
else:
|
403 |
st.sidebar.write("Failed to load the image.")
|
404 |
except:
|
|
|
380 |
"https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/Djx-k4WOxzlXEQPzllP3r.png"
|
381 |
]
|
382 |
|
383 |
+
UseSidebarArtCard=True
|
384 |
if UseSidebarArtCard:
|
385 |
# Select a random URL from the list
|
386 |
selected_image_url = random.choice(image_urls)
|
|
|
397 |
st.markdown(f"![image](data:image/png;base64,{selected_image_base64})")
|
398 |
|
399 |
# Create and display the download link
|
400 |
+
#download_link = create_download_link("downloaded_image.png", selected_image_base64)
|
401 |
+
#st.markdown(download_link, unsafe_allow_html=True)
|
402 |
else:
|
403 |
st.sidebar.write("Failed to load the image.")
|
404 |
except:
|