Spaces:
Sleeping
Sleeping
Update app_logic.py
Browse files- app_logic.py +2 -1
app_logic.py
CHANGED
@@ -65,7 +65,6 @@ def load_token_from_image_and_set_env(image_pil_object: Image.Image, password: s
|
|
65 |
def process_commented_markdown(commented_input):
|
66 |
"""Process a commented markdown string by stripping '# ' from each line if '# # Space:' is present."""
|
67 |
lines = commented_input.strip().split("\n")
|
68 |
-
print(lines)
|
69 |
print(type(lines))
|
70 |
# Check for '# # Space:' or variations (e.g., '# Space:') in any line
|
71 |
if any( "# # Space:" in line.strip() for line in lines):
|
@@ -80,7 +79,9 @@ def parse_markdown(markdown_input):
|
|
80 |
space_info = {"repo_name_md": "", "owner_md": "", "files": []}
|
81 |
current_file_path = None; current_file_content_lines = []
|
82 |
in_file_definition = False; in_code_block = False
|
|
|
83 |
markdown_input = process_commented_markdown(markdown_input)
|
|
|
84 |
lines = markdown_input.strip().split("\n")
|
85 |
|
86 |
for line_content_orig in lines:
|
|
|
65 |
def process_commented_markdown(commented_input):
|
66 |
"""Process a commented markdown string by stripping '# ' from each line if '# # Space:' is present."""
|
67 |
lines = commented_input.strip().split("\n")
|
|
|
68 |
print(type(lines))
|
69 |
# Check for '# # Space:' or variations (e.g., '# Space:') in any line
|
70 |
if any( "# # Space:" in line.strip() for line in lines):
|
|
|
79 |
space_info = {"repo_name_md": "", "owner_md": "", "files": []}
|
80 |
current_file_path = None; current_file_content_lines = []
|
81 |
in_file_definition = False; in_code_block = False
|
82 |
+
print(markdown_input)
|
83 |
markdown_input = process_commented_markdown(markdown_input)
|
84 |
+
print(markdown_input)
|
85 |
lines = markdown_input.strip().split("\n")
|
86 |
|
87 |
for line_content_orig in lines:
|