Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,8 @@ def preprocess_prompt(prompt):
|
|
13 |
processed_prompt = prompt
|
14 |
else:
|
15 |
# 使用正则表达式匹配 @startmindmap 和 @endmindmap 之间的内容
|
16 |
-
|
17 |
-
pattern = r'@startmindmap\n([*+\\-]*?)\n@endmindmap'
|
18 |
match = re.search(pattern, prompt, re.DOTALL)
|
19 |
if match:
|
20 |
mindmap_content = match.group(1)
|
|
|
13 |
processed_prompt = prompt
|
14 |
else:
|
15 |
# 使用正则表达式匹配 @startmindmap 和 @endmindmap 之间的内容
|
16 |
+
pattern = r'@startmindmap\n(.*?)\n@endmindmap'
|
17 |
+
# pattern = r'@startmindmap\n([*+\\-]*?)\n@endmindmap'
|
18 |
match = re.search(pattern, prompt, re.DOTALL)
|
19 |
if match:
|
20 |
mindmap_content = match.group(1)
|