Spaces:
Runtime error
Runtime error
Commit
·
7107aca
1
Parent(s):
c65c39d
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ from io import BytesIO
|
|
15 |
# Set up OpenAI API
|
16 |
openai.api_key = "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"
|
17 |
|
|
|
18 |
st.markdown(
|
19 |
"""
|
20 |
<style>
|
@@ -40,17 +41,17 @@ st.markdown(
|
|
40 |
}
|
41 |
.stMarkdown h1, .stMarkdown h2 {
|
42 |
color: white !important; /* Set the text color of h1 and h2 elements to white */
|
43 |
-
|
44 |
-
|
45 |
-
background-color: rgba(0, 0, 0, 0.6);
|
46 |
border-radius: 10px;
|
47 |
-
|
48 |
}
|
49 |
</style>
|
50 |
""",
|
51 |
unsafe_allow_html=True,
|
52 |
)
|
53 |
|
|
|
54 |
device = torch.device("cpu")
|
55 |
|
56 |
testing_df = pd.read_csv("testing_df.csv")
|
|
|
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>
|
|
|
41 |
}
|
42 |
.stMarkdown h1, .stMarkdown h2 {
|
43 |
color: white !important; /* Set the text color of h1 and h2 elements to white */
|
44 |
+
padding: 10px;
|
45 |
+
background: rgba(0, 0, 0, 0.6);
|
|
|
46 |
border-radius: 10px;
|
47 |
+
backdrop-filter: blur(10px);
|
48 |
}
|
49 |
</style>
|
50 |
""",
|
51 |
unsafe_allow_html=True,
|
52 |
)
|
53 |
|
54 |
+
|
55 |
device = torch.device("cpu")
|
56 |
|
57 |
testing_df = pd.read_csv("testing_df.csv")
|