witchEverly
commited on
Update pages/πΈ_InstaMuse.py
Browse files- pages/πΈ_InstaMuse.py +7 -2
pages/πΈ_InstaMuse.py
CHANGED
@@ -102,8 +102,13 @@ if uploaded_file:
|
|
102 |
|
103 |
col3, col4, col5, col6 = st.columns(4)
|
104 |
if col3.button("π Copy Captions"):
|
105 |
-
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
if col4.button("π Regenerate Captions"):
|
109 |
# Forcefully clear file to trigger reprocessing
|
|
|
102 |
|
103 |
col3, col4, col5, col6 = st.columns(4)
|
104 |
if col3.button("π Copy Captions"):
|
105 |
+
try:
|
106 |
+
pyperclip.copy(st.session_state['captions'])
|
107 |
+
st.success("Captions copied to clipboard!")
|
108 |
+
except Exception as e:
|
109 |
+
st.error('Unable to copy to clipboard on this system ):')
|
110 |
+
|
111 |
+
|
112 |
|
113 |
if col4.button("π Regenerate Captions"):
|
114 |
# Forcefully clear file to trigger reprocessing
|