Spaces:
Runtime error
Runtime error
JunchuanYu
commited on
Commit
•
e9c2d63
1
Parent(s):
3a90c65
Update app.py
Browse files
app.py
CHANGED
@@ -19,63 +19,63 @@ with open("custom.css", "r", encoding="utf-8") as f:
|
|
19 |
|
20 |
with gr.Blocks(
|
21 |
css=customCSS,
|
22 |
-
theme=gr.themes.Soft(
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
).set(
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
),
|
80 |
) as demo:
|
81 |
|
@@ -93,7 +93,7 @@ with gr.Blocks(
|
|
93 |
with gr.Row(scale=1).style(equal_height=True):
|
94 |
with gr.Column(scale=5):
|
95 |
with gr.Column():
|
96 |
-
chatbot = gr.Chatbot().style(
|
97 |
user_input = gr.Textbox(show_label=False, placeholder="Enter text and press submit", visible=True).style(container=False)
|
98 |
submitBtn = gr.Button("Submit", variant="primary").style(container=False)
|
99 |
emptyBtn = gr.Button("Restart Conversation")
|
|
|
19 |
|
20 |
with gr.Blocks(
|
21 |
css=customCSS,
|
22 |
+
# theme=gr.themes.Soft(
|
23 |
+
# primary_hue=gr.themes.Color(
|
24 |
+
# c50="#708090",
|
25 |
+
# c100="#708090",
|
26 |
+
# c200="#708090",
|
27 |
+
# c300="#708090",
|
28 |
+
# c400="#708090",
|
29 |
+
# c500="#708090",
|
30 |
+
# c600="#708090",
|
31 |
+
# c700="#708090",
|
32 |
+
# c800="#708090",
|
33 |
+
# c900="#708090",
|
34 |
+
# c950="#708090",
|
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="#f9fafb",
|
52 |
+
# c100="#f3f4f6",
|
53 |
+
# c200="#e5e7eb",
|
54 |
+
# c300="#d1d5db",
|
55 |
+
# c400="#B2B2B2",
|
56 |
+
# c500="#808080",
|
57 |
+
# c600="#636363",
|
58 |
+
# c700="#515151",
|
59 |
+
# c800="#393939",
|
60 |
+
# c900="#272727",
|
61 |
+
# c950="#171717",
|
62 |
+
# ),
|
63 |
+
# radius_size=gr.themes.sizes.radius_sm,
|
64 |
+
# ).set(
|
65 |
+
# button_primary_background_fill="#708090",
|
66 |
+
# button_primary_background_fill_dark="#708090",
|
67 |
+
# button_primary_background_fill_hover="#708090",
|
68 |
+
# button_primary_border_color="#778899",
|
69 |
+
# button_primary_border_color_dark="#778899",
|
70 |
+
# button_primary_text_color="#FFFFFF",
|
71 |
+
# button_primary_text_color_dark="#FFFFFF",
|
72 |
+
# button_secondary_background_fill="#F2F2F2",
|
73 |
+
# button_secondary_background_fill_dark="#2B2B2B",
|
74 |
+
# button_secondary_text_color="#393939",
|
75 |
+
# button_secondary_text_color_dark="#FFFFFF",
|
76 |
+
# block_title_text_color="*primary_500",
|
77 |
+
# block_title_background_fill="*primary_100",
|
78 |
+
# input_background_fill="#F6F6F6",
|
79 |
),
|
80 |
) as demo:
|
81 |
|
|
|
93 |
with gr.Row(scale=1).style(equal_height=True):
|
94 |
with gr.Column(scale=5):
|
95 |
with gr.Column():
|
96 |
+
chatbot = gr.Chatbot().style(color_map=("green", "blue"))
|
97 |
user_input = gr.Textbox(show_label=False, placeholder="Enter text and press submit", visible=True).style(container=False)
|
98 |
submitBtn = gr.Button("Submit", variant="primary").style(container=False)
|
99 |
emptyBtn = gr.Button("Restart Conversation")
|