Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def clear_fields():
|
|
| 114 |
return "", "", "" # 清空問題、回答和分析結果,但不清空錯題紀錄
|
| 115 |
|
| 116 |
with gr.Blocks() as demo:
|
| 117 |
-
gr.Markdown("# 👨🏫 教師檢定智慧陪讀家教
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
topic_input = gr.Dropdown(choices=topics, label="選擇複習主題")
|
|
@@ -127,7 +127,7 @@ with gr.Blocks() as demo:
|
|
| 127 |
outputs=question_output)
|
| 128 |
|
| 129 |
user_answer = gr.Textbox(label="你的回答", lines=3)
|
| 130 |
-
analyze_btn = gr.Button("
|
| 131 |
analysis_result = gr.Textbox(label="AI 分析與講解", lines=5)
|
| 132 |
error_history_output = gr.Textbox(label="錯題紀錄", lines=5)
|
| 133 |
|
|
|
|
| 114 |
return "", "", "" # 清空問題、回答和分析結果,但不清空錯題紀錄
|
| 115 |
|
| 116 |
with gr.Blocks() as demo:
|
| 117 |
+
gr.Markdown("# 👨🏫 教師檢定智慧陪讀家教 ")
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
topic_input = gr.Dropdown(choices=topics, label="選擇複習主題")
|
|
|
|
| 127 |
outputs=question_output)
|
| 128 |
|
| 129 |
user_answer = gr.Textbox(label="你的回答", lines=3)
|
| 130 |
+
analyze_btn = gr.Button("分析回答")
|
| 131 |
analysis_result = gr.Textbox(label="AI 分析與講解", lines=5)
|
| 132 |
error_history_output = gr.Textbox(label="錯題紀錄", lines=5)
|
| 133 |
|