broadfield-dev commited on
Commit
b38d463
·
verified ·
1 Parent(s): 19c9791

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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))
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).format())
180
  f.close()
181
  # Upload a local file to the Space
182
  commit_message = "Adding file test: "+ str(file_name)