Spaces:
Sleeping
Sleeping
- return markdown format
Browse files
app.py
CHANGED
|
@@ -282,6 +282,9 @@ def get_ai_suggestion(topic_result, exercise_quiz_result):
|
|
| 282 |
- The suggestions should be relevant to the course content.
|
| 283 |
- use ZH-TW language, this is very important.
|
| 284 |
- return markdown format
|
|
|
|
|
|
|
|
|
|
| 285 |
|
| 286 |
for this student based on the given knowledge graph and data:
|
| 287 |
1. How to interpret this knowledge graph.
|
|
@@ -292,8 +295,8 @@ def get_ai_suggestion(topic_result, exercise_quiz_result):
|
|
| 292 |
# 針對 emdob01 學生的課程建議
|
| 293 |
### 1. 如何解讀此知識圖與數據
|
| 294 |
知識圖呈現學生在不同知識點上的掌握程度,用數字顯示熟悉度(0-1)。例如:
|
| 295 |
-
- `jnc-4-05-3-1` : 1 代表完全掌握
|
| 296 |
-
- `jnc-4-06-2-2` : 0 代表未掌握
|
| 297 |
|
| 298 |
該學生的表現數據顯示各個練習題的回答正確性與所花費的時間。這有助於了解學生對不同題目的理解程度和答題速度。
|
| 299 |
|
|
@@ -366,7 +369,7 @@ with gr.Blocks() as app:
|
|
| 366 |
|
| 367 |
all_in_one_button = gr.Button("Fetch Data and Generate Graph")
|
| 368 |
|
| 369 |
-
with gr.Accordion(open=False):
|
| 370 |
topic_result = gr.JSON(label="Query Result")
|
| 371 |
exercise_quiz_result = gr.JSON(label="Quiz Query Result")
|
| 372 |
|
|
@@ -376,7 +379,7 @@ with gr.Blocks() as app:
|
|
| 376 |
with gr.Row():
|
| 377 |
gr.Markdown("# AI suggestion Powered by Junyi Academy")
|
| 378 |
with gr.Row():
|
| 379 |
-
ai_suggestion = gr.
|
| 380 |
|
| 381 |
all_in_one_button.click(
|
| 382 |
fn=query_metabase_topic,
|
|
|
|
| 282 |
- The suggestions should be relevant to the course content.
|
| 283 |
- use ZH-TW language, this is very important.
|
| 284 |
- return markdown format
|
| 285 |
+
- user will get a knowledge graph and data, 1 will be the best, 0 will be the worst.
|
| 286 |
+
then 1 will show color green, 0 will show color red, others will show color orange.
|
| 287 |
+
so you can just transfer the number to color to explain the user's performance.
|
| 288 |
|
| 289 |
for this student based on the given knowledge graph and data:
|
| 290 |
1. How to interpret this knowledge graph.
|
|
|
|
| 295 |
# 針對 emdob01 學生的課程建議
|
| 296 |
### 1. 如何解讀此知識圖與數據
|
| 297 |
知識圖呈現學生在不同知識點上的掌握程度,用數字顯示熟悉度(0-1)。例如:
|
| 298 |
+
- `jnc-4-05-3-1` : 1(綠色) 代表完全掌握
|
| 299 |
+
- `jnc-4-06-2-2` : 0(紅色) 代表未掌握
|
| 300 |
|
| 301 |
該學生的表現數據顯示各個練習題的回答正確性與所花費的時間。這有助於了解學生對不同題目的理解程度和答題速度。
|
| 302 |
|
|
|
|
| 369 |
|
| 370 |
all_in_one_button = gr.Button("Fetch Data and Generate Graph")
|
| 371 |
|
| 372 |
+
with gr.Accordion(open=False, label="Raw Data"):
|
| 373 |
topic_result = gr.JSON(label="Query Result")
|
| 374 |
exercise_quiz_result = gr.JSON(label="Quiz Query Result")
|
| 375 |
|
|
|
|
| 379 |
with gr.Row():
|
| 380 |
gr.Markdown("# AI suggestion Powered by Junyi Academy")
|
| 381 |
with gr.Row():
|
| 382 |
+
ai_suggestion = gr.Markdown()
|
| 383 |
|
| 384 |
all_in_one_button.click(
|
| 385 |
fn=query_metabase_topic,
|