youngtsai commited on
Commit
bd8cb58
·
1 Parent(s): fd98054
Files changed (1) hide show
  1. assignment_ui.py +5 -5
assignment_ui.py CHANGED
@@ -292,7 +292,7 @@ def create_assignment_ui(user_data, assignment_service, submission_service, dash
292
 
293
  html_parts.append(f"""
294
  <div style="margin-bottom: 20px;">
295
- <div style="font-weight: bold; color: #28a745; margin-bottom: 5px;">📄 输入段落全文</div>
296
  <div style="background-color: #f8f9fa; padding: 10px 15px; border-radius: 5px; white-space: pre-wrap;">{content.get('chinese_full_paragraph_input', '未提供')}</div>
297
  </div>
298
 
@@ -303,7 +303,7 @@ def create_assignment_ui(user_data, assignment_service, submission_service, dash
303
  """)
304
 
305
  if 'chinese_full_paragraph_evaluate_output_table' in content:
306
- html_parts.append(generate_table_html(content['chinese_full_paragraph_evaluate_output_table'], "📊 评分结果", "#dc3545"))
307
 
308
  html_parts.append("""
309
  </div>
@@ -316,18 +316,18 @@ def create_assignment_ui(user_data, assignment_service, submission_service, dash
316
 
317
  html_parts.append(f"""
318
  <div style="margin-bottom: 20px;">
319
- <div style="font-weight: bold; color: #6610f2; margin-bottom: 5px;">🔄 段落改善建议 输入</div>
320
  <div style="background-color: #f8f9fa; padding: 10px 15px; border-radius: 5px; white-space: pre-wrap;">{content.get('chinese_full_paragraph_refine_input', '未提供')}</div>
321
  </div>
322
 
323
  <div style="margin-bottom: 20px;">
324
- <div style="font-weight: bold; color: #fd7e14; margin-bottom: 5px;">🔄 段落改善建议</div>
325
  <div style="background-color: #f8f9fa; padding: 10px 15px; border-radius: 5px; white-space: pre-wrap;">{content.get('chinese_full_paragraph_refine_output_text', '未提供')}</div>
326
  </div>
327
  """)
328
 
329
  if 'chinese_full_paragraph_refine_output_table' in content:
330
- html_parts.append(generate_table_html(content['chinese_full_paragraph_refine_output_table'], "📊 修改后评分", "#20c997"))
331
 
332
  html_parts.append(f"""
333
  <div style="margin-bottom: 20px;">
 
292
 
293
  html_parts.append(f"""
294
  <div style="margin-bottom: 20px;">
295
+ <div style="font-weight: bold; color: #28a745; margin-bottom: 5px;">📄 輸入段落全文</div>
296
  <div style="background-color: #f8f9fa; padding: 10px 15px; border-radius: 5px; white-space: pre-wrap;">{content.get('chinese_full_paragraph_input', '未提供')}</div>
297
  </div>
298
 
 
303
  """)
304
 
305
  if 'chinese_full_paragraph_evaluate_output_table' in content:
306
+ html_parts.append(generate_table_html(content['chinese_full_paragraph_evaluate_output_table'], "📊 評分结果", "#dc3545"))
307
 
308
  html_parts.append("""
309
  </div>
 
316
 
317
  html_parts.append(f"""
318
  <div style="margin-bottom: 20px;">
319
+ <div style="font-weight: bold; color: #6610f2; margin-bottom: 5px;">🔄 段落改善建议 輸入</div>
320
  <div style="background-color: #f8f9fa; padding: 10px 15px; border-radius: 5px; white-space: pre-wrap;">{content.get('chinese_full_paragraph_refine_input', '未提供')}</div>
321
  </div>
322
 
323
  <div style="margin-bottom: 20px;">
324
+ <div style="font-weight: bold; color: #fd7e14; margin-bottom: 5px;">🔄 段落改善建議</div>
325
  <div style="background-color: #f8f9fa; padding: 10px 15px; border-radius: 5px; white-space: pre-wrap;">{content.get('chinese_full_paragraph_refine_output_text', '未提供')}</div>
326
  </div>
327
  """)
328
 
329
  if 'chinese_full_paragraph_refine_output_table' in content:
330
+ html_parts.append(generate_table_html(content['chinese_full_paragraph_refine_output_table'], "📊 修改後評分", "#20c997"))
331
 
332
  html_parts.append(f"""
333
  <div style="margin-bottom: 20px;">