Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,37 +31,46 @@ st.markdown(f"""
|
|
31 |
<style>
|
32 |
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
|
33 |
|
34 |
-
|
35 |
background: {get_cosmic_background()};
|
36 |
-
|
|
|
|
|
37 |
font-family: 'Orbitron', sans-serif;
|
38 |
}}
|
39 |
-
|
40 |
-
|
|
|
|
|
41 |
}}
|
42 |
-
|
43 |
-
|
|
|
44 |
border-radius: 15px;
|
45 |
padding: 20px;
|
46 |
backdrop-filter: blur(10px);
|
47 |
}}
|
|
|
48 |
.chat-message {{
|
49 |
-
background: rgba(255,255,255,0.1);
|
50 |
border-radius: 10px;
|
51 |
padding: 15px;
|
52 |
margin-bottom: 10px;
|
53 |
transition: all 0.3s ease;
|
54 |
}}
|
|
|
55 |
.chat-message:hover {{
|
56 |
transform: scale(1.02);
|
57 |
-
box-shadow: 0 0 20px rgba(255,255,255,0.2);
|
58 |
}}
|
|
|
59 |
.stTextInput > div > div > input {{
|
60 |
-
background: rgba(255,255,255,0.1);
|
61 |
color: white;
|
62 |
-
border: 2px solid rgba(255,255,255,0.2);
|
63 |
border-radius: 10px;
|
64 |
}}
|
|
|
65 |
.stButton > button {{
|
66 |
background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
|
67 |
color: white;
|
@@ -70,28 +79,44 @@ st.markdown(f"""
|
|
70 |
border-radius: 20px;
|
71 |
transition: all 0.3s ease;
|
72 |
}}
|
|
|
73 |
.stButton > button:hover {{
|
74 |
transform: scale(1.1);
|
75 |
-
box-shadow: 0 0 20px rgba(255,255,255,0.3);
|
76 |
}}
|
77 |
|
78 |
.cosmic-title {{
|
79 |
text-align: center;
|
80 |
font-size: 2.5rem;
|
81 |
margin-bottom: 2rem;
|
82 |
-
|
|
|
83 |
animation: glow 2s ease-in-out infinite alternate;
|
84 |
}}
|
85 |
|
86 |
@keyframes glow {{
|
87 |
from {{
|
88 |
-
text-shadow: 0 0 10px rgba(255,255,255,0.5);
|
89 |
}}
|
90 |
to {{
|
91 |
-
text-shadow: 0 0 20px rgba(255,255,255,0.8),
|
92 |
-
0 0 30px rgba(255,255,255,0.6);
|
93 |
}}
|
94 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
</style>
|
96 |
""", unsafe_allow_html=True)
|
97 |
|
|
|
31 |
<style>
|
32 |
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap');
|
33 |
|
34 |
+
.stApp {{
|
35 |
background: {get_cosmic_background()};
|
36 |
+
background-attachment: fixed;
|
37 |
+
background-size: cover;
|
38 |
+
color: white;
|
39 |
font-family: 'Orbitron', sans-serif;
|
40 |
}}
|
41 |
+
|
42 |
+
section[data-testid="stSidebar"] {{
|
43 |
+
background-color: rgba(0, 0, 0, 0.3);
|
44 |
+
backdrop-filter: blur(10px);
|
45 |
}}
|
46 |
+
|
47 |
+
.main .block-container {{
|
48 |
+
background: rgba(0, 0, 0, 0.3);
|
49 |
border-radius: 15px;
|
50 |
padding: 20px;
|
51 |
backdrop-filter: blur(10px);
|
52 |
}}
|
53 |
+
|
54 |
.chat-message {{
|
55 |
+
background: rgba(255, 255, 255, 0.1);
|
56 |
border-radius: 10px;
|
57 |
padding: 15px;
|
58 |
margin-bottom: 10px;
|
59 |
transition: all 0.3s ease;
|
60 |
}}
|
61 |
+
|
62 |
.chat-message:hover {{
|
63 |
transform: scale(1.02);
|
64 |
+
box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
|
65 |
}}
|
66 |
+
|
67 |
.stTextInput > div > div > input {{
|
68 |
+
background: rgba(255, 255, 255, 0.1);
|
69 |
color: white;
|
70 |
+
border: 2px solid rgba(255, 255, 255, 0.2);
|
71 |
border-radius: 10px;
|
72 |
}}
|
73 |
+
|
74 |
.stButton > button {{
|
75 |
background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
|
76 |
color: white;
|
|
|
79 |
border-radius: 20px;
|
80 |
transition: all 0.3s ease;
|
81 |
}}
|
82 |
+
|
83 |
.stButton > button:hover {{
|
84 |
transform: scale(1.1);
|
85 |
+
box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
|
86 |
}}
|
87 |
|
88 |
.cosmic-title {{
|
89 |
text-align: center;
|
90 |
font-size: 2.5rem;
|
91 |
margin-bottom: 2rem;
|
92 |
+
color: white;
|
93 |
+
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
|
94 |
animation: glow 2s ease-in-out infinite alternate;
|
95 |
}}
|
96 |
|
97 |
@keyframes glow {{
|
98 |
from {{
|
99 |
+
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
|
100 |
}}
|
101 |
to {{
|
102 |
+
text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
|
103 |
+
0 0 30px rgba(255, 255, 255, 0.6);
|
104 |
}}
|
105 |
}}
|
106 |
+
|
107 |
+
[data-testid="stHeader"] {{
|
108 |
+
background: rgba(0, 0, 0, 0.3);
|
109 |
+
backdrop-filter: blur(10px);
|
110 |
+
}}
|
111 |
+
|
112 |
+
.stSelectbox label,
|
113 |
+
.stSelectbox div[data-baseweb="select"] span {{
|
114 |
+
color: white !important;
|
115 |
+
}}
|
116 |
+
|
117 |
+
div[data-testid="stMarkdownContainer"] {{
|
118 |
+
color: white;
|
119 |
+
}}
|
120 |
</style>
|
121 |
""", unsafe_allow_html=True)
|
122 |
|