JUNGU commited on
Commit
ce840f2
Β·
1 Parent(s): e076670

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
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}"