Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,8 +139,6 @@ with open(readme_path, 'w') as f:
|
|
| 139 |
f.write(model_card)
|
| 140 |
|
| 141 |
# Upload the Model Card to Hugging Face Hub
|
| 142 |
-
upload_file(path_or_fileobj=path_or_fileobj, path_in_repo=path_in_repo, repo_id=repo_id, token=os.getenv('HUGGINGFACE_API_TOKEN'))
|
| 143 |
-
) # Ensure the token has write permissions # Ensure the token has write permissions
|
| 144 |
|
| 145 |
# Upload files to Hugging Face Hub
|
| 146 |
upload_file(
|
|
|
|
| 139 |
f.write(model_card)
|
| 140 |
|
| 141 |
# Upload the Model Card to Hugging Face Hub
|
|
|
|
|
|
|
| 142 |
|
| 143 |
# Upload files to Hugging Face Hub
|
| 144 |
upload_file(
|