TejAndrewsACC commited on
Commit
9062093
·
verified ·
1 Parent(s): 435bba3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -199,12 +199,17 @@ def acc_nyxion_7v(message, history, user_id):
199
  return "", history
200
 
201
  # UI
202
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
 
 
 
 
 
203
  chatbot = gr.Chatbot(label="Nyxion-7V", type="messages")
204
- msg = gr.Textbox(placeholder="Message Nyxion-7V...", label="Your Message")
205
- user_id = gr.State()
206
 
207
-
208
  msg.submit(acc_nyxion_7v, [msg, chatbot, user_id], [msg, chatbot])
209
 
210
  demo.launch()
 
199
  return "", history
200
 
201
  # UI
202
+ theme = gr.themes.Soft(
203
+ primary_hue=gr.themes.Color(c100="#d1fae5", c200="#a7f3d0", c300="#6ee7b7", c400="#34d399", c50="rgba(217.02092505888103, 222.113134765625, 219.29041867345288, 1)", c500="#10b981", c600="#059669", c700="#047857", c800="#065f46", c900="#064e3b", c950="#054436"),
204
+ secondary_hue="red",
205
+ neutral_hue="indigo",
206
+ )
207
+
208
+ with gr.Blocks(theme=theme) as demo:
209
  chatbot = gr.Chatbot(label="Nyxion-7V", type="messages")
210
+ msg = gr.Textbox(placeholder="Message Nyxion-7V...")
211
+ user_id = gr.State()
212
 
 
213
  msg.submit(acc_nyxion_7v, [msg, chatbot, user_id], [msg, chatbot])
214
 
215
  demo.launch()