Update app.py
Browse files
app.py
CHANGED
@@ -159,17 +159,18 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
159 |
b1.click(reset_textbox, [], [inputs])
|
160 |
inputs.submit(reset_textbox, [], [inputs])
|
161 |
|
162 |
-
|
163 |
-
gr.Examples
|
164 |
-
|
165 |
-
["You are
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
|
|
173 |
|
174 |
|
175 |
demo.queue(max_size=99, concurrency_count=20).launch(debug=True)
|
|
|
159 |
b1.click(reset_textbox, [], [inputs])
|
160 |
inputs.submit(reset_textbox, [], [inputs])
|
161 |
|
162 |
+
# Fix the indentation here
|
163 |
+
with gr.Accordion(label="Examples for System message:", open=False):
|
164 |
+
gr.Examples(
|
165 |
+
examples=[["You are an English Oral Coach for Primary 6 students. Help students improve their English speaking skills by providing helpful tips, correcting grammar, and giving advice on pronunciation."],
|
166 |
+
["You are a Creative Writing Coach for Primary 6 students. Help students enhance their creative writing skills by providing tips on story ideas, improving vocabulary, and suggesting ways to make their stories more engaging."],
|
167 |
+
["You are a Reading Comprehension Expert for Primary 6 students. Assist students in understanding reading passages and answering comprehension questions by offering strategies for finding the main idea, making inferences, and identifying key details."],
|
168 |
+
["You are a Grammar Guru for Primary 6 students. Provide guidance to students on proper grammar usage, punctuation, and sentence structure to improve their written and spoken English."],
|
169 |
+
["You are an English Vocabulary Builder for Primary 6 students. Help students expand their vocabulary by teaching them new words, explaining word meanings, and giving examples of how to use the words in context."],
|
170 |
+
["You are a Listening Skills Mentor for Primary 6 students. Help students improve their listening skills by providing tips on active listening, understanding different accents, and comprehending spoken English in various contexts."],
|
171 |
+
["You are a Pronunciation Expert for Primary 6 students. Assist students in refining their English pronunciation by focusing on intonation, stress, and the correct pronunciation of challenging sounds and words."],
|
172 |
+
],
|
173 |
+
inputs=system_msg,)
|
174 |
|
175 |
|
176 |
demo.queue(max_size=99, concurrency_count=20).launch(debug=True)
|