Spaces:
Runtime error
Runtime error
JunchuanYu
commited on
Commit
·
0e95946
1
Parent(s):
0e54efb
Update app.py
Browse files
app.py
CHANGED
@@ -19,13 +19,47 @@ with open("custom.css", "r", encoding="utf-8") as f:
|
|
19 |
|
20 |
with gr.Blocks(
|
21 |
css=customCSS,
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
radius_size=gr.themes.sizes.radius_sm,
|
30 |
).set(
|
31 |
button_primary_background_fill="#708090",
|
@@ -42,7 +76,7 @@ with gr.Blocks(
|
|
42 |
block_title_text_color="#000000",
|
43 |
block_title_background_fill="#000000",
|
44 |
input_background_fill="#F6F6F6",
|
45 |
-
)
|
46 |
) as demo:
|
47 |
|
48 |
history = gr.State([])
|
|
|
19 |
|
20 |
with gr.Blocks(
|
21 |
css=customCSS,
|
22 |
+
theme=gr.themes.Soft(
|
23 |
+
primary_hue=gr.themes.Color(
|
24 |
+
c50="#7b68ee",
|
25 |
+
c100="rgba(123,104,238, 0.2)",
|
26 |
+
c200="#6a5acd",
|
27 |
+
c300="rgba(123,104,238, 0.32)",
|
28 |
+
c400="rgba(123,104,238, 0.32)",
|
29 |
+
c500="rgba(123,104,238, 1.0)",
|
30 |
+
c600="rgba(123,104,238, 1.0)",
|
31 |
+
c700="rgba(123,104,238, 0.32)",
|
32 |
+
c800="rgba(123,104,238, 0.32)",
|
33 |
+
c900="#6a5acd",
|
34 |
+
c950="#7b68ee",
|
35 |
+
),
|
36 |
+
secondary_hue=gr.themes.Color(
|
37 |
+
c50="#576b95",
|
38 |
+
c100="#576b95",
|
39 |
+
c200="#576b95",
|
40 |
+
c300="#576b95",
|
41 |
+
c400="#576b95",
|
42 |
+
c500="#576b95",
|
43 |
+
c600="#576b95",
|
44 |
+
c700="#576b95",
|
45 |
+
c800="#576b95",
|
46 |
+
c900="#576b95",
|
47 |
+
c950="#576b95",
|
48 |
+
),
|
49 |
+
neutral_hue=gr.themes.Color(
|
50 |
+
name="gray",
|
51 |
+
c50="#gray",
|
52 |
+
c100="#gray",
|
53 |
+
c200="#gray",
|
54 |
+
c300="#gray",
|
55 |
+
c400="#gray",
|
56 |
+
c500="#gray",
|
57 |
+
c600="#gray",
|
58 |
+
c700="#gray",
|
59 |
+
c800="#gray",
|
60 |
+
c900="#gray",
|
61 |
+
c950="#gray",
|
62 |
+
),
|
63 |
radius_size=gr.themes.sizes.radius_sm,
|
64 |
).set(
|
65 |
button_primary_background_fill="#708090",
|
|
|
76 |
block_title_text_color="#000000",
|
77 |
block_title_background_fill="#000000",
|
78 |
input_background_fill="#F6F6F6",
|
79 |
+
),
|
80 |
) as demo:
|
81 |
|
82 |
history = gr.State([])
|