Spaces:
Sleeping
Sleeping
Update sentences.py
Browse files- sentences.py +8 -6
sentences.py
CHANGED
@@ -76,12 +76,14 @@ def generate_sentences(words, source, use_ai, model_name):
|
|
76 |
model_used = sentence_records[0][4]
|
77 |
|
78 |
result_display += f"""
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
|
|
85 |
"""
|
86 |
|
87 |
current_status = "✅ 所有單字處理完成!"
|
|
|
76 |
model_used = sentence_records[0][4]
|
77 |
|
78 |
result_display += f"""
|
79 |
+
<div style="margin-bottom: 10px; padding: 8px; border-left: 4px solid #4CAF50; background-color: transparent;">
|
80 |
+
<strong>單字:</strong> {word} <br>
|
81 |
+
<strong>音標:</strong> {phonetic} <br>
|
82 |
+
<strong>句子:</strong> {sentence} <br>
|
83 |
+
<strong>來源:</strong> {source_used} {f"({model_used})" if model_used else ""}
|
84 |
+
</div>
|
85 |
+
"""
|
86 |
+
|
87 |
"""
|
88 |
|
89 |
current_status = "✅ 所有單字處理完成!"
|