broadfield-dev commited on
Commit
b0948d0
·
verified ·
1 Parent(s): ddee6bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -158,7 +158,7 @@ def build_space(repo_name,file_name,file_content,access_token=""):
158
 
159
  local_file_path=str(uuid.uuid4())
160
  with open(local_file_path, 'w') as f:
161
- f.write(str(file_content['content']))
162
  f.close()
163
  # Upload a local file to the Space
164
  commit_message = "Adding file test: "+ str(file_name)
 
158
 
159
  local_file_path=str(uuid.uuid4())
160
  with open(local_file_path, 'w') as f:
161
+ f.write(str(file_content))
162
  f.close()
163
  # Upload a local file to the Space
164
  commit_message = "Adding file test: "+ str(file_name)