Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,7 @@ def update_gallery():
|
|
216 |
st.markdown(get_download_link(file, mime_type, "Snag It! 📥"), unsafe_allow_html=True) # 🔗 Provide a download link—grab your asset faster than a flash sale!
|
217 |
if st.button("Zap It! 🗑️", key=f"delete_{file}_{unique_id}"): # ⚡ "Zap It!" button: Because sometimes you just gotta make stuff disappear!
|
218 |
os.remove(file); st.session_state['asset_checkboxes'].pop(file, None); st.sidebar.success(f"Asset {os.path.basename(file)} vaporized! 💨"); st.rerun() # 💥 Delete the file and refresh the gallery—poof, it's gone!
|
219 |
-
update_gallery() # 🎉 Launch the gallery update—let the art party commence! (Joke: Why did the asset cross the road? To get zapped on the other side! 😆)
|
220 |
|
221 |
st.sidebar.subheader("Action Logs 📜") # 📝 Action Logs: Where our system whispers its secrets!
|
222 |
with st.sidebar: [st.write(f"{record.asctime} - {record.levelname} - {record.message}") for record in log_records] # 📚 Loop through log records and display them like diary entries!
|
|
|
216 |
st.markdown(get_download_link(file, mime_type, "Snag It! 📥"), unsafe_allow_html=True) # 🔗 Provide a download link—grab your asset faster than a flash sale!
|
217 |
if st.button("Zap It! 🗑️", key=f"delete_{file}_{unique_id}"): # ⚡ "Zap It!" button: Because sometimes you just gotta make stuff disappear!
|
218 |
os.remove(file); st.session_state['asset_checkboxes'].pop(file, None); st.sidebar.success(f"Asset {os.path.basename(file)} vaporized! 💨"); st.rerun() # 💥 Delete the file and refresh the gallery—poof, it's gone!
|
219 |
+
#update_gallery() # 🎉 Launch the gallery update—let the art party commence! (Joke: Why did the asset cross the road? To get zapped on the other side! 😆)
|
220 |
|
221 |
st.sidebar.subheader("Action Logs 📜") # 📝 Action Logs: Where our system whispers its secrets!
|
222 |
with st.sidebar: [st.write(f"{record.asctime} - {record.levelname} - {record.message}") for record in log_records] # 📚 Loop through log records and display them like diary entries!
|