Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,37 +3,33 @@ import gradio as gr
|
|
3 |
# Custom CSS for gradient background and styling
|
4 |
custom_css = """
|
5 |
.gradio-container {
|
6 |
-
background: linear-gradient(135deg, #
|
7 |
background-size: 400% 400%;
|
8 |
animation: gradient-animation 15s ease infinite;
|
9 |
min-height: 100vh;
|
10 |
}
|
11 |
-
|
12 |
@keyframes gradient-animation {
|
13 |
0% { background-position: 0% 50%; }
|
14 |
50% { background-position: 100% 50%; }
|
15 |
100% { background-position: 0% 50%; }
|
16 |
}
|
17 |
-
|
18 |
.dark .gradio-container {
|
19 |
-
background: linear-gradient(135deg, #
|
20 |
background-size: 400% 400%;
|
21 |
animation: gradient-animation 15s ease infinite;
|
22 |
}
|
23 |
-
|
24 |
/* Style for content areas */
|
25 |
.main-container {
|
26 |
-
background-color: rgba(255, 255, 255, 0.
|
27 |
backdrop-filter: blur(10px);
|
28 |
border-radius: 20px;
|
29 |
padding: 20px;
|
30 |
-
box-shadow: 0
|
31 |
-
border: 1px solid rgba(255, 255, 255, 0.
|
32 |
margin: 10px;
|
33 |
}
|
34 |
-
|
35 |
.dark .main-container {
|
36 |
-
background-color: rgba(
|
37 |
border: 1px solid rgba(255, 255, 255, 0.1);
|
38 |
}
|
39 |
"""
|
@@ -45,7 +41,7 @@ def switch_model(model_choice):
|
|
45 |
"""Function to switch between models"""
|
46 |
return gr.update(visible=False), gr.update(visible=True), model_choice
|
47 |
|
48 |
-
with gr.Blocks(fill_height=True, theme="
|
49 |
with gr.Row():
|
50 |
# Sidebar
|
51 |
with gr.Column(scale=1):
|
|
|
3 |
# Custom CSS for gradient background and styling
|
4 |
custom_css = """
|
5 |
.gradio-container {
|
6 |
+
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 25%, #fbc2eb 50%, #a6c1ee 75%, #c2e9fb 100%);
|
7 |
background-size: 400% 400%;
|
8 |
animation: gradient-animation 15s ease infinite;
|
9 |
min-height: 100vh;
|
10 |
}
|
|
|
11 |
@keyframes gradient-animation {
|
12 |
0% { background-position: 0% 50%; }
|
13 |
50% { background-position: 100% 50%; }
|
14 |
100% { background-position: 0% 50%; }
|
15 |
}
|
|
|
16 |
.dark .gradio-container {
|
17 |
+
background: linear-gradient(135deg, #2a2a3e 0%, #3a3a5e 25%, #4a4a6e 50%, #5a5a7e 75%, #6a6a8e 100%);
|
18 |
background-size: 400% 400%;
|
19 |
animation: gradient-animation 15s ease infinite;
|
20 |
}
|
|
|
21 |
/* Style for content areas */
|
22 |
.main-container {
|
23 |
+
background-color: rgba(255, 255, 255, 0.92);
|
24 |
backdrop-filter: blur(10px);
|
25 |
border-radius: 20px;
|
26 |
padding: 20px;
|
27 |
+
box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.15);
|
28 |
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
29 |
margin: 10px;
|
30 |
}
|
|
|
31 |
.dark .main-container {
|
32 |
+
background-color: rgba(40, 40, 40, 0.95);
|
33 |
border: 1px solid rgba(255, 255, 255, 0.1);
|
34 |
}
|
35 |
"""
|
|
|
41 |
"""Function to switch between models"""
|
42 |
return gr.update(visible=False), gr.update(visible=True), model_choice
|
43 |
|
44 |
+
with gr.Blocks(fill_height=True, theme="soft", css=custom_css) as demo:
|
45 |
with gr.Row():
|
46 |
# Sidebar
|
47 |
with gr.Column(scale=1):
|