Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,18 @@ def main():
|
|
33 |
|
34 |
task_description = """You are a helpful assistant that generates annotated text for the st-annotated-text library in Python. Highlight the key terms that are most important in the context of the sentence, especially focusing on the primary action and the main subject involved. Your output should be formatted in the following way for Korean text:
|
35 |
annotated_text(
|
36 |
-
"
|
37 |
-
("
|
38 |
-
"
|
39 |
-
("
|
40 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
)"""
|
42 |
|
43 |
user_prompt = f"Now, please annotate this text: {user_text}"
|
|
|
33 |
|
34 |
task_description = """You are a helpful assistant that generates annotated text for the st-annotated-text library in Python. Highlight the key terms that are most important in the context of the sentence, especially focusing on the primary action and the main subject involved. Your output should be formatted in the following way for Korean text:
|
35 |
annotated_text(
|
36 |
+
"This ",
|
37 |
+
("is", ""),
|
38 |
+
" some ",
|
39 |
+
("annotated", ""),
|
40 |
+
("text", ""),
|
41 |
+
" for those of ",
|
42 |
+
("you", ""),
|
43 |
+
" who ",
|
44 |
+
("like", ""),
|
45 |
+
" this sort of ",
|
46 |
+
("thing", ""),
|
47 |
+
". "
|
48 |
)"""
|
49 |
|
50 |
user_prompt = f"Now, please annotate this text: {user_text}"
|