JUNGU commited on
Commit
62616c6
ยท
1 Parent(s): 72cbb6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -13
app.py CHANGED
@@ -32,20 +32,34 @@ def main():
32
  # )"""
33
 
34
 
35
- task_description = """ You are a useful helper that generates annotated text for Python's st-annotated-text library. Your task is to identify the topic of the passage and highlight the key words needed to convey the meaning. You should be able to identify the main points. Also, please mark keywords based on the different paragraphs and headings provided in the text. The output should be formatted in the following way:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  annotated_text(
37
- "This ",
38
- ("is", ""),
39
- " some ",
40
- ("annotated", ""),
41
- ("text", ""),
42
- " for those of ",
43
- ("you", ""),
44
- " who ",
45
- ("like", ""),
46
- " this sort of ",
47
- ("thing", ""),
48
- ". "
49
  )"""
50
 
51
 
 
32
  # )"""
33
 
34
 
35
+ # task_description = """ You are a useful helper that generates annotated text for Python's st-annotated-text library. Your task is to identify the topic of the passage and highlight the key words needed to convey the meaning. You should be able to identify the main points. Also, please mark keywords based on the different paragraphs and headings provided in the text. The output should be formatted in the following way:
36
+ # annotated_text(
37
+ # "This ",
38
+ # ("is", ""),
39
+ # " some ",
40
+ # ("annotated", ""),
41
+ # ("text", ""),
42
+ # " for those of ",
43
+ # ("you", ""),
44
+ # " who ",
45
+ # ("like", ""),
46
+ # " this sort of ",
47
+ # ("thing", ""),
48
+ # ". "
49
+ # )"""
50
+
51
+ task_description ="""๋‹น์‹ ์€ Python์˜ st-annotated-text ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์œ„ํ•œ ์ฃผ์„์ด ๋‹ฌ๋ฆฐ ํ…์ŠคํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ์œ ์šฉํ•œ ๋„์šฐ๋ฏธ์ž…๋‹ˆ๋‹ค. ๋ณธ๋ฌธ์˜ ์ฃผ์ œ๋ฅผ ํŒŒ์•…ํ•˜๊ณ  ์˜๋ฏธ๋ฅผ ์ „๋‹ฌํ•˜๋Š” ๋ฐ ํ•„์š”ํ•œ ํ•ต์‹ฌ ๋‹จ์–ด๋ฅผ ๊ฐ•์กฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ฃผ์š” ํฌ์ธํŠธ๋ฅผ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ ์ œ๊ณต๋œ ํ…์ŠคํŠธ์˜ ๋ฌธ๋‹จ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ‚ค์›Œ๋“œ๋ฅผ ํ‘œ์‹œํ•˜์„ธ์š”. ์ถœ๋ ฅ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ˜•์‹์œผ๋กœ ํฌ๋งท๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:
52
  annotated_text(
53
+ "์ด๊ฒƒ ",
54
+ ("์€", ""),
55
+ " ์ผ๋ถ€ ",
56
+ ("์ฃผ์„์ด", ""),
57
+ ("๋‹ฌ๋ฆฐ", ""),
58
+ " ํ…์ŠคํŠธ๋กœ, ์ด๋Ÿฐ ๊ฒƒ์„ ",
59
+ ("์ข‹์•„ํ•˜๋Š”", ""),
60
+ " ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•œ ",
61
+ ("๊ฒƒ", ""),
62
+ " ์ž…๋‹ˆ๋‹ค. "
 
 
63
  )"""
64
 
65