Spaces:
Build error
Build error
Upload assistant.py
Browse files- assistant.py +4 -5
assistant.py
CHANGED
|
@@ -14,7 +14,7 @@ ASSISTANT_ID = os.environ.get("ASSISTANT_ID")
|
|
| 14 |
|
| 15 |
# Get the assistant ID and field ids(reuses if already created)
|
| 16 |
history = [
|
| 17 |
-
gr.ChatMessage(role="assistant", content="Hello! I can help you
|
| 18 |
]
|
| 19 |
def submit_message(thread, user_message):
|
| 20 |
print(user_message)
|
|
@@ -115,12 +115,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 115 |
)
|
| 116 |
examples = [
|
| 117 |
"Compare Free School Meal rates for a school",
|
| 118 |
-
"
|
| 119 |
-
"
|
| 120 |
]
|
| 121 |
ci = gr.ChatInterface(
|
| 122 |
-
chatbot=gr.Chatbot([], type='messages', placeholder="Hello! I can help you
|
| 123 |
-
|
| 124 |
fn=process,
|
| 125 |
examples=examples,
|
| 126 |
type='messages',
|
|
|
|
| 14 |
|
| 15 |
# Get the assistant ID and field ids(reuses if already created)
|
| 16 |
history = [
|
| 17 |
+
gr.ChatMessage(role="assistant", content="Hello! I can help you understand how school admissions work and explore how policies affect fair access to education. You can ask me about FSM data, admission policies, application processes, appeals—and more. Just tell me your school’s name, or pick a topic below to get started."),
|
| 18 |
]
|
| 19 |
def submit_message(thread, user_message):
|
| 20 |
print(user_message)
|
|
|
|
| 115 |
)
|
| 116 |
examples = [
|
| 117 |
"Compare Free School Meal rates for a school",
|
| 118 |
+
"Explain a specific type of admissions policy",
|
| 119 |
+
"I’m a parent with a question about admissions",
|
| 120 |
]
|
| 121 |
ci = gr.ChatInterface(
|
| 122 |
+
chatbot=gr.Chatbot([], type='messages', placeholder="Hello! I can help you understand how school admissions work and explore how policies affect fair access to education. You can ask me about FSM data, admission policies, application processes, appeals—and more. Just tell me your school’s name, or pick a topic below to get started."),
|
|
|
|
| 123 |
fn=process,
|
| 124 |
examples=examples,
|
| 125 |
type='messages',
|