Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ if uploaded_image and API_KEY:
|
|
| 77 |
.get("content", "No caption generated.")
|
| 78 |
)
|
| 79 |
st.subheader("Generated Caption")
|
| 80 |
-
st.
|
| 81 |
|
| 82 |
except Exception as e:
|
| 83 |
st.error(f"Error processing the response: {e}")
|
|
@@ -97,6 +97,10 @@ st.markdown(
|
|
| 97 |
.css-1aumxhk {display: flex; justify-content: center;}
|
| 98 |
.css-1k6kn8p {justify-content: center; align-items: center; display: flex;}
|
| 99 |
.css-ffhzg6 {text-align: center;}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
</style>
|
| 101 |
""", unsafe_allow_html=True
|
| 102 |
)
|
|
|
|
| 77 |
.get("content", "No caption generated.")
|
| 78 |
)
|
| 79 |
st.subheader("Generated Caption")
|
| 80 |
+
st.text_area("Caption Output", caption, height=200, key="caption_output", disabled=True)
|
| 81 |
|
| 82 |
except Exception as e:
|
| 83 |
st.error(f"Error processing the response: {e}")
|
|
|
|
| 97 |
.css-1aumxhk {display: flex; justify-content: center;}
|
| 98 |
.css-1k6kn8p {justify-content: center; align-items: center; display: flex;}
|
| 99 |
.css-ffhzg6 {text-align: center;}
|
| 100 |
+
textarea {
|
| 101 |
+
color: white !important;
|
| 102 |
+
background-color: #262626 !important;
|
| 103 |
+
}
|
| 104 |
</style>
|
| 105 |
""", unsafe_allow_html=True
|
| 106 |
)
|