Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,7 +160,7 @@ def build_space(repo_name,file_name,file_content,access_token=""):
|
|
| 160 |
print("File uploaded successfully.")
|
| 161 |
# Commit changes
|
| 162 |
commit_message += "\nInitial commit to the repository."+ local_file_path
|
| 163 |
-
api.commit_repo(space_id, message=commit_message)
|
| 164 |
return [{'role':'assistant','content': commit_message+'\nCommit Success' }]
|
| 165 |
except Exception as e:
|
| 166 |
print("ERROR ",e)
|
|
|
|
| 160 |
print("File uploaded successfully.")
|
| 161 |
# Commit changes
|
| 162 |
commit_message += "\nInitial commit to the repository."+ local_file_path
|
| 163 |
+
#api.commit_repo(space_id, message=commit_message)
|
| 164 |
return [{'role':'assistant','content': commit_message+'\nCommit Success' }]
|
| 165 |
except Exception as e:
|
| 166 |
print("ERROR ",e)
|