Spaces:
Runtime error
Runtime error
Commit
·
c65c39d
1
Parent(s):
c8f90a0
Update app.py
Browse files
app.py
CHANGED
@@ -15,13 +15,11 @@ from io import BytesIO
|
|
15 |
# Set up OpenAI API
|
16 |
openai.api_key = "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"
|
17 |
|
18 |
-
# Custom CSS for the page
|
19 |
st.markdown(
|
20 |
"""
|
21 |
<style>
|
22 |
body {
|
23 |
background-color: transparent;
|
24 |
-
color: #000;
|
25 |
}
|
26 |
.container {
|
27 |
display: flex;
|
@@ -31,13 +29,22 @@ st.markdown(
|
|
31 |
border-radius: 15px;
|
32 |
padding: 20px;
|
33 |
}
|
34 |
-
|
35 |
-
background:
|
36 |
-
|
37 |
-
|
38 |
-
color:
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
</style>
|
43 |
""",
|
|
|
15 |
# Set up OpenAI API
|
16 |
openai.api_key = "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"
|
17 |
|
|
|
18 |
st.markdown(
|
19 |
"""
|
20 |
<style>
|
21 |
body {
|
22 |
background-color: transparent;
|
|
|
23 |
}
|
24 |
.container {
|
25 |
display: flex;
|
|
|
29 |
border-radius: 15px;
|
30 |
padding: 20px;
|
31 |
}
|
32 |
+
.stApp {
|
33 |
+
background-color: transparent;
|
34 |
+
}
|
35 |
+
.stText, .stMarkdown, .stTextInput>label, .stButton>button>span {
|
36 |
+
color: #1c1c1c !important; /* Set the dark text color for text elements */
|
37 |
+
}
|
38 |
+
.stButton>button>span {
|
39 |
+
color: initial !important; /* Reset the text color for the 'Generate Caption' button */
|
40 |
+
}
|
41 |
+
.stMarkdown h1, .stMarkdown h2 {
|
42 |
+
color: white !important; /* Set the text color of h1 and h2 elements to white */
|
43 |
+
display: inline;
|
44 |
+
padding: 8px 16px;
|
45 |
+
background-color: rgba(0, 0, 0, 0.6);
|
46 |
+
border-radius: 10px;
|
47 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
48 |
}
|
49 |
</style>
|
50 |
""",
|