Update app.py
Browse files
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":
|
| 50 |
-
You give clear kid-appropiate
|
| 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 |
|