amywww commited on
Commit
3b95f93
·
verified ·
1 Parent(s): c0418b9

Upload assistant.py

Browse files
Files changed (1) hide show
  1. 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 explore how Free School Meal (FSM) rates at your school compare to deprivation levels in the local community—and what that might mean for fair access to education. Just tell me your school’s name to get started."),
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
- "Can you explain a specific type of school admission policy?",
119
- "Show me research about school admissions",
120
  ]
121
  ci = gr.ChatInterface(
122
- chatbot=gr.Chatbot([], type='messages', placeholder="Hello! I can help you explore how Free School Meal (FSM) rates at your school compare to deprivation levels in the local community—and what that might mean for fair access to education. Just tell me your school’s name to get started."),
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',