Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def create_hf_space():
|
|
110 |
if filename.endswith(".py"):
|
111 |
# Inject parameters into Python files if present
|
112 |
#content = f"PARAMS = {json.dumps(params)}\n\n{content}"
|
113 |
-
content = list(content.split("\n")
|
114 |
for line in content:
|
115 |
f.write(line + "\n")
|
116 |
f.close()
|
|
|
110 |
if filename.endswith(".py"):
|
111 |
# Inject parameters into Python files if present
|
112 |
#content = f"PARAMS = {json.dumps(params)}\n\n{content}"
|
113 |
+
content = list(content.split("\n"))
|
114 |
for line in content:
|
115 |
f.write(line + "\n")
|
116 |
f.close()
|