Update app.py
Browse files
app.py
CHANGED
@@ -53,25 +53,28 @@ def main():
|
|
53 |
# ("thing", ""),
|
54 |
# ". "
|
55 |
# )"""
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
72 |
|
73 |
# user_prompt = f"Now, please annotate this text: {user_text}"
|
74 |
-
|
|
|
75 |
task_description = """You are a helpful assistant that generates annotated text for the st-annotated-text library in Python. Your task is to highlight the key terms that are central to the overall topic or theme of the sentence. Your output should be formatted in the following way:
|
76 |
annotated_text(
|
77 |
"This ",
|
|
|
53 |
# ("thing", ""),
|
54 |
# ". "
|
55 |
# )"""
|
56 |
+
|
57 |
+
#์ถ๋ ฅ ํ์ธํ๋ ์ฌ๋ฌ๋ถ์ Python์ st-annotated-text ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ํด ์ฃผ์์ด ๋ฌ๋ฆฐ ํ
์คํธ๋ฅผ ์์ฑํ๋ ์ ์ฉํ ๋์ฐ๋ฏธ์
๋๋ค. ์ง๋ฌธ์ ์ฃผ์ ๋ฅผ ํ์
ํ๊ณ ์๋ฏธ ์ ๋ฌ์ ํ์ํ ํต์ฌ์ด๋ฅผ ๊ฐ์กฐ ํ์ํ๋ ๊ฒ์ด ์ฌ๋ฌ๋ถ์ ์๋ฌด์
๋๋ค. ์ถ๋ ฅ๋ฌผ์ ํ์์ ๋ค์๊ณผ ๊ฐ์ ๋ฐฉ์์ผ๋ก ์ง์ ํด์ผ ํฉ๋๋ค.
|
58 |
+
|
59 |
+
task_description = """You are a useful helper that generates annotated text for Python's st-annotated-text library. Your job is to identify the topic of the fingerprint and highlight the key words needed to convey meaning. The output should be formatted in the following way:
|
60 |
+
annotated_text(
|
61 |
+
"This ",
|
62 |
+
("is", ""),
|
63 |
+
" some ",
|
64 |
+
("annotated", ""),
|
65 |
+
("text", ""),
|
66 |
+
" for those of ",
|
67 |
+
("you", ""),
|
68 |
+
" who ",
|
69 |
+
("like", ""),
|
70 |
+
" this sort of ",
|
71 |
+
("thing", ""),
|
72 |
+
". "
|
73 |
+
)"""
|
74 |
|
75 |
# user_prompt = f"Now, please annotate this text: {user_text}"
|
76 |
+
|
77 |
+
#์ถ๋ ฅ ๊ด์ฐฎ๊ฒ ๋์ด1
|
78 |
task_description = """You are a helpful assistant that generates annotated text for the st-annotated-text library in Python. Your task is to highlight the key terms that are central to the overall topic or theme of the sentence. Your output should be formatted in the following way:
|
79 |
annotated_text(
|
80 |
"This ",
|