ashimanair commited on
Commit
f42e120
·
verified ·
1 Parent(s): c6e2370

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -2,6 +2,12 @@ import gradio as gr
2
  import random
3
  from huggingface_hub import InferenceClient
4
 
 
 
 
 
 
 
5
  client = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLM
6
 
7
  def respond(message, history):
@@ -30,6 +36,6 @@ def random_message(message, history):
30
  random_choices = random.choice(choices)
31
  return random_choices
32
 
33
- chatbot = gr.ChatInterface(respond, type = "messages", theme = "gr.themes.Glass()")
34
 
35
  chatbot.launch(debug=True)
 
2
  import random
3
  from huggingface_hub import InferenceClient
4
 
5
+ gr.themes.builder(
6
+ primary_hue = pink
7
+ secondary_hue = cyan
8
+ nuetral_hue = gray
9
+ )
10
+
11
  client = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLM
12
 
13
  def respond(message, history):
 
36
  random_choices = random.choice(choices)
37
  return random_choices
38
 
39
+ chatbot = gr.ChatInterface(respond, type = "messages")
40
 
41
  chatbot.launch(debug=True)