Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -130,6 +130,10 @@ def create_hf_space():
|
|
130 |
|
131 |
# Handle multi-file uploads
|
132 |
for filename, content in files.items():
|
|
|
|
|
|
|
|
|
133 |
# Write content to a temporary file
|
134 |
with open(f"temp_{filename}", "w") as f:
|
135 |
if filename.endswith(".py"):
|
|
|
130 |
|
131 |
# Handle multi-file uploads
|
132 |
for filename, content in files.items():
|
133 |
+
content_lines = content.split("\n")
|
134 |
+
content = ""
|
135 |
+
for line in content_lines:
|
136 |
+
content += line + "\n"
|
137 |
# Write content to a temporary file
|
138 |
with open(f"temp_{filename}", "w") as f:
|
139 |
if filename.endswith(".py"):
|