Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ def build_space(repo_name,file_name,file_content,access_token=""):
|
|
176 |
|
177 |
local_file_path=str(uuid.uuid4())
|
178 |
with open(local_file_path, 'w') as f:
|
179 |
-
f.write(str(file_content).format())
|
180 |
f.close()
|
181 |
# Upload a local file to the Space
|
182 |
commit_message = "Adding file test: "+ str(file_name)
|
|
|
176 |
|
177 |
local_file_path=str(uuid.uuid4())
|
178 |
with open(local_file_path, 'w') as f:
|
179 |
+
f.write(str(file_content).strip("''").strip('""').strip("{}").format())
|
180 |
f.close()
|
181 |
# Upload a local file to the Space
|
182 |
commit_message = "Adding file test: "+ str(file_name)
|