Spaces:
Sleeping
Sleeping
改錯字
Browse files- 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;">📄
|
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'], "📊
|
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;">🔄 段落改善建议
|
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;">🔄
|
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'], "📊
|
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;">
|