Spaces:
Sleeping
Sleeping
remove text
Browse files
app.py
CHANGED
@@ -12,9 +12,9 @@ def greet(name):
|
|
12 |
return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ。よろしくね"
|
13 |
|
14 |
def extract_texts(input_str):
|
15 |
-
|
16 |
-
|
17 |
-
|
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):
|