Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,8 +110,9 @@ 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 |
f.write(content)
|
114 |
-
|
115 |
# Upload to the new Space
|
116 |
try:
|
117 |
api.upload_file(
|
|
|
110 |
if filename.endswith(".py"):
|
111 |
# Inject parameters into Python files if present
|
112 |
content = f"PARAMS = {json.dumps(params)}\n\n{content}"
|
113 |
+
|
114 |
f.write(content)
|
115 |
+
os.system(f"black temp_{filename}")
|
116 |
# Upload to the new Space
|
117 |
try:
|
118 |
api.upload_file(
|