ClownRat commited on
Commit
f353a20
β€’
1 Parent(s): 9c93acd

Update style.

Browse files
Files changed (1) hide show
  1. app.py +26 -18
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
- # tos_markdown = ("""
46
- # ### Terms of use
47
- # By using this service, users are required to agree to the following terms:
48
- # 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.
49
- # Please click the "Flag" button if you get any inappropriate answer! We will collect those to keep improving our moderator.
50
- # For an optimal experience, please use desktop computers for this demo, as mobile devices may compromise its quality.
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='#EDD2DF',
64
- c200='#E4BFD2',
65
- c300='#DBACC5',
66
- c400='#D299B8',
67
- c500='#C986AB',
68
- c600='#C0739E',
69
- c700='#B76091',
70
- c800='#AE4D84',
71
- c900='#A53A77',
72
- c950='#9C276A',
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
- with gr.Blocks(title='VideoLLaMA 2 πŸ”₯πŸš€πŸ”₯', theme=gr.themes.Default(primary_hue=gr.themes.colors.violet), css=block_css) as demo:
 
 
 
 
 
 
 
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()