Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,9 +123,11 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
| 123 |
with gr.Column(elem_id = "col_container"):
|
| 124 |
#GPT4 API Key is provided by Huggingface
|
| 125 |
with gr.Accordion(label="System message:", open=False):
|
| 126 |
-
system_msg = gr.Textbox(label="Instruct the AI Assistant to set its
|
|
|
|
|
|
|
| 127 |
accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
|
| 128 |
-
chatbot = gr.Chatbot(label='
|
| 129 |
inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter")
|
| 130 |
state = gr.State([])
|
| 131 |
with gr.Row():
|
|
|
|
| 123 |
with gr.Column(elem_id = "col_container"):
|
| 124 |
#GPT4 API Key is provided by Huggingface
|
| 125 |
with gr.Accordion(label="System message:", open=False):
|
| 126 |
+
system_msg = gr.Textbox(label="Instruct the AI Assistant to set its behaviour",
|
| 127 |
+
info = system_msg_info,
|
| 128 |
+
value="You are a Social Studies Coach for Primary 6 students in Singapore. Use Socratic questioning to help students discover the legacies of South East Asian Kingdoms such as Funan, Srivijaya, Sukhothai, Majapahit, Melaka, and Angkor. If a student asks about a topic outside of these, kindly redirect them to focus on the specified kingdoms.")
|
| 129 |
accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
|
| 130 |
+
chatbot = gr.Chatbot(label='SS Coach', elem_id="chatbot")
|
| 131 |
inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter")
|
| 132 |
state = gr.State([])
|
| 133 |
with gr.Row():
|