Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,8 @@ if uploaded_image and API_KEY:
|
|
81 |
st.write(caption)
|
82 |
|
83 |
# Add a copy button to copy the caption to clipboard
|
84 |
-
|
|
|
85 |
pyperclip.copy(caption) # Copy caption to clipboard
|
86 |
st.success("Caption copied to clipboard!")
|
87 |
|
|
|
81 |
st.write(caption)
|
82 |
|
83 |
# Add a copy button to copy the caption to clipboard
|
84 |
+
copy_button = st.button("Copy Caption", use_container_width=True)
|
85 |
+
if copy_button:
|
86 |
pyperclip.copy(caption) # Copy caption to clipboard
|
87 |
st.success("Caption copied to clipboard!")
|
88 |
|