Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def analyze_answer(user_input, question):
|
|
| 86 |
return feedback, ""
|
| 87 |
|
| 88 |
def clear_fields():
|
| 89 |
-
return "", "", ""
|
| 90 |
|
| 91 |
with gr.Blocks() as demo:
|
| 92 |
gr.Markdown("# 👨🏫 教師檢定智慧陪讀家教 🚀")
|
|
@@ -110,6 +110,6 @@ with gr.Blocks() as demo:
|
|
| 110 |
inputs=[user_answer, question_output],
|
| 111 |
outputs=[analysis_result, error_history_output])
|
| 112 |
|
| 113 |
-
clear_btn.click(fn=clear_fields, outputs=[question_output, user_answer, analysis_result
|
| 114 |
|
| 115 |
demo.launch()
|
|
|
|
| 86 |
return feedback, ""
|
| 87 |
|
| 88 |
def clear_fields():
|
| 89 |
+
return "", "", "" # 清空問題、回答和分析結果,但不清空錯題紀錄
|
| 90 |
|
| 91 |
with gr.Blocks() as demo:
|
| 92 |
gr.Markdown("# 👨🏫 教師檢定智慧陪讀家教 🚀")
|
|
|
|
| 110 |
inputs=[user_answer, question_output],
|
| 111 |
outputs=[analysis_result, error_history_output])
|
| 112 |
|
| 113 |
+
clear_btn.click(fn=clear_fields, outputs=[question_output, user_answer, analysis_result])
|
| 114 |
|
| 115 |
demo.launch()
|