JUNGU commited on
Commit
e076670
โ€ข
1 Parent(s): 924cf8c
Files changed (1) hide show
  1. app.py +22 -13
app.py CHANGED
@@ -15,20 +15,29 @@ def main():
15
  if st.button("Find Keywords"):
16
 
17
  # few-shot learning์„ ์ด์šฉํ•œ task_description
18
- 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. Your output should be formatted in the following way:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  annotated_text(
20
- "This ",
21
- ("is", ""),
22
- " some ",
23
- ("annotated", ""),
24
- ("text", ""),
25
- " for those of ",
26
- ("you", ""),
27
- " who ",
28
- ("like", ""),
29
- " this sort of ",
30
- ("thing", ""),
31
- ". "
32
  )"""
33
 
34
  user_prompt = f"Now, please annotate this text: {user_text}"
 
15
  if st.button("Find Keywords"):
16
 
17
  # few-shot learning์„ ์ด์šฉํ•œ task_description
18
+ # 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. Your output should be formatted in the following way:
19
+ # annotated_text(
20
+ # "This ",
21
+ # ("is", ""),
22
+ # " some ",
23
+ # ("annotated", ""),
24
+ # ("text", ""),
25
+ # " for those of ",
26
+ # ("you", ""),
27
+ # " who ",
28
+ # ("like", ""),
29
+ # " this sort of ",
30
+ # ("thing", ""),
31
+ # ". "
32
+ # )"""
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}"