ThatOneKevDev commited on
Commit
34b54dd
·
verified ·
1 Parent(s): 42e737c

hopefully bg color updated

Browse files
Files changed (1) hide show
  1. app.py +69 -1
app.py CHANGED
@@ -8,6 +8,75 @@ import os
8
  import gradio as gr
9
  from transformers import pipeline
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  # Load the Hugging Face pipeline
12
  # summarizer = pipeline("summarization")
13
 
@@ -119,7 +188,6 @@ def query_model(question):
119
 
120
  # Define the welcome message and specific topics the chatbot can provide information about
121
  welcome_message = """
122
- # 🌎 Welcome to GloBot! 🌻
123
 
124
  ## Your AI-driven assistant for STL community outreach queries. Created by Honna, Davonne, and Maryam of the 2024 Kode With Klossy St.Louis Camp!
125
  """
 
8
  import gradio as gr
9
  from transformers import pipeline
10
 
11
+ import gradio as gr
12
+
13
+ theme = gr.themes.Default(
14
+ primary_hue=gr.themes.Color(c100="#ffedd5", c200="#fed7aa", c300="#ffe09e", c400="#c2814c", c50="#fff8f0", c500="#f97316", c600="#ea580c", c700="#c2410c", c800="#9a3412", c900="#7c2d12", c950="#611f00"),
15
+ secondary_hue="red",
16
+ neutral_hue="slate",
17
+ font=[gr.themes.GoogleFont('jack armstrong'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
18
+ font_mono=[gr.themes.GoogleFont('xkcd'), 'ui-monospace', 'Consolas', 'monospace'],
19
+ ).set(
20
+ body_text_color='*primary_950',
21
+ body_text_color_dark='*secondary_50',
22
+ body_text_size='*text_lg',
23
+ body_text_color_subdued='*primary_400',
24
+ body_text_weight='500',
25
+ background_fill_primary='*primary_300',
26
+ background_fill_primary_dark='*primary_800',
27
+ background_fill_secondary='*primary_50',
28
+ background_fill_secondary_dark='*primary_600',
29
+ border_color_accent='*secondary_950',
30
+ border_color_accent_dark='*body_text_color',
31
+ border_color_accent_subdued='*border_color_accent',
32
+ link_text_color='*secondary_800',
33
+ code_background_fill='*neutral_200',
34
+ code_background_fill_dark='*neutral_100',
35
+ block_shadow='none',
36
+ block_shadow_dark='none',
37
+ form_gap_width='0px',
38
+ checkbox_label_background_fill='*button_secondary_background_fill',
39
+ checkbox_label_background_fill_dark='*button_secondary_background_fill',
40
+ checkbox_label_background_fill_hover='*button_secondary_background_fill_hover',
41
+ checkbox_label_background_fill_hover_dark='*button_secondary_background_fill_hover',
42
+ checkbox_label_shadow='none',
43
+ error_background_fill_dark='*background_fill_primary',
44
+ input_background_fill='*neutral_100',
45
+ input_background_fill_dark='*neutral_700',
46
+ input_border_width='0px',
47
+ input_border_width_dark='0px',
48
+ input_shadow='none',
49
+ input_shadow_dark='none',
50
+ input_shadow_focus='*input_shadow',
51
+ input_shadow_focus_dark='*input_shadow',
52
+ stat_background_fill='*primary_300',
53
+ stat_background_fill_dark='*primary_500',
54
+ button_shadow='none',
55
+ button_shadow_active='none',
56
+ button_shadow_hover='none',
57
+ button_transition='background-color 0.2s ease',
58
+ button_primary_background_fill='*primary_200',
59
+ button_primary_background_fill_dark='*primary_700',
60
+ button_primary_background_fill_hover='*button_primary_background_fill',
61
+ button_primary_background_fill_hover_dark='*button_primary_background_fill',
62
+ button_primary_border_color_dark='*primary_600',
63
+ button_secondary_background_fill='*neutral_200',
64
+ button_secondary_background_fill_dark='*neutral_600',
65
+ button_secondary_background_fill_hover='*button_secondary_background_fill',
66
+ button_secondary_background_fill_hover_dark='*button_secondary_background_fill',
67
+ button_cancel_background_fill='*button_secondary_background_fill',
68
+ button_cancel_background_fill_dark='*button_secondary_background_fill',
69
+ button_cancel_background_fill_hover='*button_cancel_background_fill',
70
+ button_cancel_background_fill_hover_dark='*button_cancel_background_fill',
71
+ button_cancel_border_color='*button_secondary_border_color',
72
+ button_cancel_border_color_dark='*button_secondary_border_color',
73
+ button_cancel_text_color='*button_secondary_text_color',
74
+ button_cancel_text_color_dark='*button_secondary_text_color'
75
+ )
76
+
77
+ with gr.Blocks(theme=theme) as demo:
78
+ ...
79
+
80
  # Load the Hugging Face pipeline
81
  # summarizer = pipeline("summarization")
82
 
 
188
 
189
  # Define the welcome message and specific topics the chatbot can provide information about
190
  welcome_message = """
 
191
 
192
  ## Your AI-driven assistant for STL community outreach queries. Created by Honna, Davonne, and Maryam of the 2024 Kode With Klossy St.Louis Camp!
193
  """