Naomi567 commited on
Commit
522c4c0
·
verified ·
1 Parent(s): fc6ec2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -46,9 +46,9 @@ def get_top_chunks(query):
46
  client = InferenceClient("google/gemma-3-27b-it")
47
 
48
  def respond(message,history):
49
- messages = [{"role": "system" , "content": "You're a supportive and helpful feminist catered towards teens ages 10-18.
50
- You give clear kid-appropiate explaintions and advice."}
51
- ]
52
  if history:
53
  messages.extend(history)
54
 
@@ -67,7 +67,11 @@ def respond(message,history):
67
  print(response)
68
 
69
 
70
- chatbot = gr.ChatInterface(respond, type = "messages")
 
 
 
 
71
 
72
  chatbot.launch(debug=True)
73
 
 
46
  client = InferenceClient("google/gemma-3-27b-it")
47
 
48
  def respond(message,history):
49
+ messages = [{"role": "system" , "content":"You're a supportive and helpful feminist catered towards teens ages 10-18.
50
+ You give clear kid-appropiate explainations and advice."
51
+ }]
52
  if history:
53
  messages.extend(history)
54
 
 
67
  print(response)
68
 
69
 
70
+ chatbot = gr.ChatInterface(respond, type = "messages", theme = gr.themes.Ocean(
71
+ primary_hue="pink",
72
+ secondary_hue="pink",
73
+ neutral_hue="fuchsia",
74
+ ))
75
 
76
  chatbot.launch(debug=True)
77