ashimanair commited on
Commit
d808ffe
·
verified ·
1 Parent(s): 688a522

please work

Browse files
Files changed (1) hide show
  1. app.py +66 -4
app.py CHANGED
@@ -3,10 +3,72 @@ import random
3
  from huggingface_hub import InferenceClient
4
  from gradio.themes.utils import colors
5
 
6
- theme = gr.themes.builder(
7
- primary_hue = colors.indigo,
8
- secondary_hue = colors.rose,
9
- neutral_hue = colors.gray
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  )
11
 
12
  client = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLM
 
3
  from huggingface_hub import InferenceClient
4
  from gradio.themes.utils import colors
5
 
6
+ theme = gr.themes.Default(
7
+ primary_hue=gr.themes.Color(
8
+ c100="#ffedd5", c200="#fed7aa", c300="#ffe09e", c400="#c2814c",
9
+ c50="#fff8f0", c500="#f97316", c600="#ea580c", c700="#c2410c",
10
+ c800="#9a3412", c900="#7c2d12", c950="#611f00"
11
+ ),
12
+ secondary_hue="red",
13
+ neutral_hue="slate",
14
+ font=[gr.themes.GoogleFont('jack armstrong'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
15
+ font_mono=[gr.themes.GoogleFont('xkcd'), 'ui-monospace', 'Consolas', 'monospace'],
16
+ ).set(
17
+ body_text_color='*primary_950',
18
+ body_text_color_dark='*secondary_50',
19
+ body_text_size='26px', # Increase body text size
20
+ body_text_color_subdued='*primary_400',
21
+ body_text_weight='500',
22
+ background_fill_primary='*primary_300',
23
+ background_fill_primary_dark='*primary_800',
24
+ background_fill_secondary='*primary_50',
25
+ background_fill_secondary_dark='*primary_600',
26
+ border_color_accent='*secondary_950',
27
+ border_color_accent_dark='*body_text_color',
28
+ border_color_accent_subdued='*border_color_accent',
29
+ link_text_color='*secondary_800',
30
+ code_background_fill='*neutral_200',
31
+ code_background_fill_dark='*neutral_100',
32
+ block_shadow='none',
33
+ block_shadow_dark='none',
34
+ form_gap_width='0px',
35
+ checkbox_label_background_fill='*button_secondary_background_fill',
36
+ checkbox_label_background_fill_dark='*button_secondary_background_fill',
37
+ checkbox_label_background_fill_hover='*button_secondary_background_fill_hover',
38
+ checkbox_label_background_fill_hover_dark='*button_secondary_background_fill_hover',
39
+ checkbox_label_shadow='none',
40
+ error_background_fill_dark='*background_fill_primary',
41
+ input_background_fill='*neutral_100',
42
+ input_background_fill_dark='*neutral_700',
43
+ input_border_width='0px',
44
+ input_border_width_dark='0px',
45
+ input_shadow='none',
46
+ input_shadow_dark='none',
47
+ input_shadow_focus='*input_shadow',
48
+ input_shadow_focus_dark='*input_shadow',
49
+ stat_background_fill='*primary_300',
50
+ stat_background_fill_dark='*primary_500',
51
+ button_shadow='none',
52
+ button_shadow_active='none',
53
+ button_shadow_hover='none',
54
+ button_transition='background-color 0.2s ease',
55
+ button_primary_background_fill='*primary_200',
56
+ button_primary_background_fill_dark='*primary_700',
57
+ button_primary_background_fill_hover='*button_primary_background_fill',
58
+ button_primary_background_fill_hover_dark='*button_primary_background_fill',
59
+ button_primary_border_color_dark='*primary_600',
60
+ button_secondary_background_fill='*neutral_200',
61
+ button_secondary_background_fill_dark='*neutral_600',
62
+ button_secondary_background_fill_hover='*button_secondary_background_fill',
63
+ button_secondary_background_fill_hover_dark='*button_secondary_background_fill',
64
+ button_cancel_background_fill='*button_secondary_background_fill',
65
+ button_cancel_background_fill_dark='*button_secondary_background_fill',
66
+ button_cancel_background_fill_hover='*button_cancel_background_fill',
67
+ button_cancel_background_fill_hover_dark='*button_cancel_background_fill',
68
+ button_cancel_border_color='*button_secondary_border_color',
69
+ button_cancel_border_color_dark='*button_secondary_border_color',
70
+ button_cancel_text_color='*button_secondary_text_color',
71
+ button_cancel_text_color_dark='*button_secondary_text_color'
72
  )
73
 
74
  client = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLM