Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ MODEL_MAPPING = {
|
|
13 |
"Urdu": "Helsinki-NLP/opus-mt-en-ur",
|
14 |
}
|
15 |
|
16 |
-
# Function to set background gradient
|
17 |
def set_background():
|
18 |
st.markdown(
|
19 |
"""
|
@@ -31,10 +31,22 @@ def set_background():
|
|
31 |
.css-1d391kg {
|
32 |
background-color: rgba(255, 255, 255, 0.2) !important;
|
33 |
}
|
34 |
-
/* Style text area */
|
35 |
.stTextArea textarea {
|
36 |
-
background-color: rgba(255, 255, 255, 0.
|
37 |
-
color:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
</style>
|
40 |
""",
|
|
|
13 |
"Urdu": "Helsinki-NLP/opus-mt-en-ur",
|
14 |
}
|
15 |
|
16 |
+
# Function to set background gradient and fix text visibility
|
17 |
def set_background():
|
18 |
st.markdown(
|
19 |
"""
|
|
|
31 |
.css-1d391kg {
|
32 |
background-color: rgba(255, 255, 255, 0.2) !important;
|
33 |
}
|
34 |
+
/* Style text area with better visibility */
|
35 |
.stTextArea textarea {
|
36 |
+
background-color: rgba(255, 255, 255, 0.9) !important;
|
37 |
+
color: black !important;
|
38 |
+
font-weight: bold;
|
39 |
+
}
|
40 |
+
/* Style selectbox */
|
41 |
+
.stSelectbox div {
|
42 |
+
background-color: rgba(255, 255, 255, 0.9) !important;
|
43 |
+
color: black !important;
|
44 |
+
}
|
45 |
+
/* Style text input fields */
|
46 |
+
input {
|
47 |
+
background-color: rgba(255, 255, 255, 0.9) !important;
|
48 |
+
color: black !important;
|
49 |
+
font-weight: bold;
|
50 |
}
|
51 |
</style>
|
52 |
""",
|