Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,24 @@ st.set_page_config(
|
|
| 18 |
initial_sidebar_state="expanded"
|
| 19 |
)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
# Initialize session state
|
| 22 |
if 'initialized' not in st.session_state:
|
| 23 |
st.session_state.initialized = True
|
|
@@ -466,7 +484,7 @@ st.divider()
|
|
| 466 |
st.markdown(
|
| 467 |
"""
|
| 468 |
<div style='text-align: center; color: gray; font-size: 0.9em;'>
|
| 469 |
-
Prompt A/B Tester v2.0
|
| 470 |
</div>
|
| 471 |
""",
|
| 472 |
unsafe_allow_html=True
|
|
|
|
| 18 |
initial_sidebar_state="expanded"
|
| 19 |
)
|
| 20 |
|
| 21 |
+
# Custom CSS for better text visibility in disabled text areas
|
| 22 |
+
st.markdown("""
|
| 23 |
+
<style>
|
| 24 |
+
/* Improve visibility of disabled text areas */
|
| 25 |
+
.stTextArea textarea[disabled] {
|
| 26 |
+
color: #FFFFFF !important;
|
| 27 |
+
opacity: 1 !important;
|
| 28 |
+
-webkit-text-fill-color: #FFFFFF !important;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
/* For light theme */
|
| 32 |
+
[data-theme="light"] .stTextArea textarea[disabled] {
|
| 33 |
+
color: #000000 !important;
|
| 34 |
+
-webkit-text-fill-color: #000000 !important;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
""", unsafe_allow_html=True)
|
| 38 |
+
|
| 39 |
# Initialize session state
|
| 40 |
if 'initialized' not in st.session_state:
|
| 41 |
st.session_state.initialized = True
|
|
|
|
| 484 |
st.markdown(
|
| 485 |
"""
|
| 486 |
<div style='text-align: center; color: gray; font-size: 0.9em;'>
|
| 487 |
+
Prompt A/B Tester v2.0 | Created by Heuristica.pl - Marek Staniszewski
|
| 488 |
</div>
|
| 489 |
""",
|
| 490 |
unsafe_allow_html=True
|