Spaces:
Running
on
Zero
Running
on
Zero
Update style.
Browse files
app.py
CHANGED
@@ -38,17 +38,18 @@ title_markdown = ("""
|
|
38 |
block_css = """
|
39 |
#buttons button {
|
40 |
min-width: min(120px,100%);
|
|
|
41 |
}
|
42 |
"""
|
43 |
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
|
53 |
|
54 |
learn_more_markdown = ("""
|
@@ -60,16 +61,16 @@ This project is released under the Apache 2.0 license as found in the LICENSE fi
|
|
60 |
plum_color = gr.themes.colors.Color(
|
61 |
name='plum',
|
62 |
c50='#F8E4EF',
|
63 |
-
c100='#
|
64 |
-
c200='#
|
65 |
-
c300='#
|
66 |
-
c400='#
|
67 |
-
c500='#
|
68 |
-
c600='#
|
69 |
-
c700='#
|
70 |
-
c800='#
|
71 |
-
c900='#
|
72 |
-
c950='#
|
73 |
)
|
74 |
|
75 |
|
@@ -229,7 +230,14 @@ handler = Chat(model_path, conv_mode=conv_mode, load_8bit=False, load_4bit=True)
|
|
229 |
|
230 |
textbox = gr.Textbox(show_label=False, placeholder="Enter text and press ENTER", container=False)
|
231 |
|
232 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
gr.Markdown(title_markdown)
|
234 |
state = gr.State()
|
235 |
state_ = gr.State()
|
|
|
38 |
block_css = """
|
39 |
#buttons button {
|
40 |
min-width: min(120px,100%);
|
41 |
+
color: #9C276A
|
42 |
}
|
43 |
"""
|
44 |
|
45 |
|
46 |
+
tos_markdown = ("""
|
47 |
+
### Terms of use
|
48 |
+
By using this service, users are required to agree to the following terms:
|
49 |
+
The service is a research preview intended for non-commercial use only. It only provides limited safety measures and may generate offensive content. It must not be used for any illegal, harmful, violent, racist, or sexual purposes. The service may collect user dialogue data for future research.
|
50 |
+
Please click the "Flag" button if you get any inappropriate answer! We will collect those to keep improving our moderator.
|
51 |
+
For an optimal experience, please use desktop computers for this demo, as mobile devices may compromise its quality.
|
52 |
+
""")
|
53 |
|
54 |
|
55 |
learn_more_markdown = ("""
|
|
|
61 |
plum_color = gr.themes.colors.Color(
|
62 |
name='plum',
|
63 |
c50='#F8E4EF',
|
64 |
+
c100='#E9D0DE',
|
65 |
+
c200='#DABCCD',
|
66 |
+
c300='#CBA8BC',
|
67 |
+
c400='#BC94AB',
|
68 |
+
c500='#AD809A',
|
69 |
+
c600='#9E6C89',
|
70 |
+
c700='#8F5878',
|
71 |
+
c800='#804467',
|
72 |
+
c900='#713056',
|
73 |
+
c950='#662647',
|
74 |
)
|
75 |
|
76 |
|
|
|
230 |
|
231 |
textbox = gr.Textbox(show_label=False, placeholder="Enter text and press ENTER", container=False)
|
232 |
|
233 |
+
theme = gr.themes.Default(primary_hue=plum_color)
|
234 |
+
theme.set(slider_color="#9C276A")
|
235 |
+
theme.set(block_title_text_color="#9C276A")
|
236 |
+
theme.set(block_label_text_color="#9C276A")
|
237 |
+
theme.set(button_primary_text_color="#9C276A")
|
238 |
+
# theme.set(button_secondary_text_color="*neutral_800")
|
239 |
+
|
240 |
+
with gr.Blocks(title='VideoLLaMA 2 π₯ππ₯', theme=theme, css=block_css) as demo:
|
241 |
gr.Markdown(title_markdown)
|
242 |
state = gr.State()
|
243 |
state_ = gr.State()
|