youngtsai commited on
Commit
3b9c668
·
1 Parent(s): 4af7007

def update_past_exam_evaluation_sys_content_prompt(past_exam_question, past_exam_hint):

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1379,9 +1379,10 @@ def update_exam_contents(selected_title):
1379
  if exam["title"] == selected_title:
1380
  return exam["title"], exam["question"], exam["hint"], exam["image_url"]
1381
 
1382
- def update_past_exam_evaluation_sys_content_prompt(past_exam_evaluation_sys_content_prompt, past_exam_question, past_exam_hint):
1383
  update_past_exam_evaluation_sys_content_prompt = f"""
1384
- {past_exam_evaluation_sys_content_prompt}
 
1385
  question:{past_exam_question}
1386
  hint:{past_exam_hint}
1387
 
@@ -3462,7 +3463,6 @@ with gr.Blocks(theme=THEME, css=CSS) as demo:
3462
  ).then(
3463
  fn=update_past_exam_evaluation_sys_content_prompt,
3464
  inputs=[
3465
- past_exam_evaluation_sys_content_prompt,
3466
  past_exam_question,
3467
  past_exam_hint
3468
  ],
 
1379
  if exam["title"] == selected_title:
1380
  return exam["title"], exam["question"], exam["hint"], exam["image_url"]
1381
 
1382
+ def update_past_exam_evaluation_sys_content_prompt(past_exam_question, past_exam_hint):
1383
  update_past_exam_evaluation_sys_content_prompt = f"""
1384
+ You are an English teacher who is practicing with me to improve my English writing skill.
1385
+ You are given a question and hint for the past exam.
1386
  question:{past_exam_question}
1387
  hint:{past_exam_hint}
1388
 
 
3463
  ).then(
3464
  fn=update_past_exam_evaluation_sys_content_prompt,
3465
  inputs=[
 
3466
  past_exam_question,
3467
  past_exam_hint
3468
  ],