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
|