YKajima commited on
Commit
3d21a93
·
1 Parent(s): 5f41257

remove text

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -12,9 +12,9 @@ def greet(name):
12
  return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ。よろしくね"
13
 
14
  def extract_texts(input_str):
15
- pattern = r"msg='([^']*)'"
16
- matches = re.findall(pattern, input_str)
17
- return matches
18
 
19
 
20
  async def summarize(input_text: str, input_url: str):
 
12
  return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ。よろしくね"
13
 
14
  def extract_texts(input_str):
15
+ pattern = r"msg='([^']*)'"
16
+ matches = re.findall(pattern, input_str)
17
+ return list(map(lambda x: ''.join(x.split('\n')), matches))
18
 
19
 
20
  async def summarize(input_text: str, input_url: str):