broadfield commited on
Commit
d1c093b
·
verified ·
1 Parent(s): 5d1a17f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -155,7 +155,7 @@ def build_space(repo_name,file_name,file_content,access_token=""):
155
  f.close()
156
  # Upload a local file to the Space
157
  commit_message = "Adding file test: "+str(uuid.uuid4())
158
- api.upload_file(local_file_path, repo_id=repo_path, path=file_name, commit_message=commit_message)
159
  print("File uploaded successfully.")
160
  # Commit changes
161
  commit_message += "\nInitial commit to the repository."+ local_file_path
 
155
  f.close()
156
  # Upload a local file to the Space
157
  commit_message = "Adding file test: "+str(uuid.uuid4())
158
+ api.upload_file(local_file_path, repo_id=repo_path, path_in_repo=file_name, commit_message=commit_message)
159
  print("File uploaded successfully.")
160
  # Commit changes
161
  commit_message += "\nInitial commit to the repository."+ local_file_path