simonraj commited on
Commit
6145108
Β·
1 Parent(s): 795f6cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,7 +116,7 @@ system_msg_info = """The system message is used to set the context and behavior
116
  theme = gr.themes.Soft(primary_hue="indigo", secondary_hue="blue", neutral_hue="blue",
117
  text_size=gr.themes.sizes.text_lg)
118
 
119
- with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""",
120
  theme=theme) as demo:
121
  gr.HTML(title)
122
  gr.HTML("""<h3 align="center">πŸ”₯This application provides AI assistance for Primary 6 Social Studies students in Singapore focusing on South East Asian Kingdoms πŸŽ‰πŸ₯³πŸŽ‰πŸ™Œ</h1>""")
@@ -127,7 +127,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
127
  with gr.Accordion(label="System message:", open=False):
128
  system_msg = gr.Textbox(label="Instruct the AI Assistant to set its behaviour",
129
  info = system_msg_info,
130
- value="You are an AI assistant acting as a coach for Primary 6 students working on an environmental awareness project. Guide the students through the design thinking process to develop an effective campaign using upcycled materials. Motivate them to fully empathize with sustainability issues through research. Encourage creative solutions and provide constructive feedback. Make sure your explanations of the design thinking steps are clear and suitable for Primary 6 students.")
131
  accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
132
  chatbot = gr.Chatbot(label='SS Coach', elem_id="chatbot")
133
  inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter")
 
116
  theme = gr.themes.Soft(primary_hue="indigo", secondary_hue="blue", neutral_hue="blue",
117
  text_size=gr.themes.sizes.text_lg)
118
 
119
+ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;width: 600px;}""",
120
  theme=theme) as demo:
121
  gr.HTML(title)
122
  gr.HTML("""<h3 align="center">πŸ”₯This application provides AI assistance for Primary 6 Social Studies students in Singapore focusing on South East Asian Kingdoms πŸŽ‰πŸ₯³πŸŽ‰πŸ™Œ</h1>""")
 
127
  with gr.Accordion(label="System message:", open=False):
128
  system_msg = gr.Textbox(label="Instruct the AI Assistant to set its behaviour",
129
  info = system_msg_info,
130
+ value="system_msg = "You are Design Thinking Coach, an AI assistant acting as a coach for Primary 6 students in Singapore working on an environmental awareness project using design thinking. Guide students through the design thinking process to develop effective solutions using upcycled materials. Use Socratic questioning to encourage students to deeply empathize with sustainability issues through research. Stimulate creative ideas and provide constructive feedback without giving away answers directly. Make sure your explanations of design thinking are clear and suitable for Primary 6 students. If a student asks about something unrelated to design thinking or environmental awareness, politely redirect them back to the project scope."")
131
  accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
132
  chatbot = gr.Chatbot(label='SS Coach', elem_id="chatbot")
133
  inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter")