JUNGU commited on
Commit
252924f
1 Parent(s): 6055715

updated PE

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -31,7 +31,23 @@ def main():
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 main subject involved. Your output should be formatted in the following way for text:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  annotated_text(
36
  "This ",
37
  ("is", ""),
@@ -46,7 +62,7 @@ def main():
46
  ("thing", ""),
47
  ". "
48
  )"""
49
-
50
  user_prompt = f"Now, please annotate this text: {user_text}"
51
 
52
  messages = [{"role": "system", "content": task_description}, {"role": "user", "content": user_prompt}]
 
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 main subject involved. Your output should be formatted in the following way for 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
+ 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:
51
  annotated_text(
52
  "This ",
53
  ("is", ""),
 
62
  ("thing", ""),
63
  ". "
64
  )"""
65
+
66
  user_prompt = f"Now, please annotate this text: {user_text}"
67
 
68
  messages = [{"role": "system", "content": task_description}, {"role": "user", "content": user_prompt}]