TIMBOVILL commited on
Commit
bc0fa33
·
verified ·
1 Parent(s): c9aeb1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -1
app.py CHANGED
@@ -6,6 +6,31 @@ from groq import Groq
6
  client = Groq(
7
  api_key = os.environ.get("Groq_Api_Key")
8
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  def create_history_messages(history):
11
  history_messages = [{"role": "user", "content": m[0]} for m in history]
@@ -54,4 +79,4 @@ gr.ChatInterface(
54
  additional_inputs=additional_inputs,
55
  title="TIMBOVILL",
56
  description="test",
57
- ).launch()
 
6
  client = Groq(
7
  api_key = os.environ.get("Groq_Api_Key")
8
  )
9
+
10
+ import gradio as gr
11
+
12
+ theme = gr.themes.Base(
13
+ neutral_hue=gr.themes.Color(c100="#f3f4f6", c200="#e5e7eb", c300="#d1d5db", c400="#9ca3af", c50="#f9fafb", c500="#6b7280", c600="#4b5563", c700="#3c83f5", c800="#000000", c900="#26252a", c950="#000000"),
14
+ text_size="lg",
15
+ radius_size="lg",
16
+ font=['system-ui', 'ui-sans-serif', 'system-ui', 'sans-serif'],
17
+ ).set(
18
+ border_color_accent_subdued_dark='*neutral_950',
19
+ border_color_primary='*neutral_950',
20
+ color_accent='*neutral_700',
21
+ color_accent_soft='*neutral_700',
22
+ block_border_color_dark='*neutral_950',
23
+ block_border_width='0px',
24
+ block_border_width_dark='0px',
25
+ block_info_text_size='*text_md',
26
+ block_label_border_color_dark='*neutral_950',
27
+ block_label_border_width='0px',
28
+ block_label_border_width_dark='0px',
29
+ input_border_color='*neutral_950',
30
+ input_border_color_dark='*neutral_950',
31
+ input_radius='*radius_xxl'
32
+ )
33
+
34
 
35
  def create_history_messages(history):
36
  history_messages = [{"role": "user", "content": m[0]} for m in history]
 
79
  additional_inputs=additional_inputs,
80
  title="TIMBOVILL",
81
  description="test",
82
+ ).launch()(theme=theme)