Spaces:
Sleeping
Sleeping
Dhrumit1314
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -79,13 +79,6 @@ def upload_video():
|
|
79 |
# Specify your namespace (username or organization name)
|
80 |
namespace = "Dhrumit1314/videoUpload"
|
81 |
|
82 |
-
# Check if the repository exists
|
83 |
-
try:
|
84 |
-
api.repo_info(namespace)
|
85 |
-
except HTTPError:
|
86 |
-
# If the repository does not exist, create it
|
87 |
-
api.create_repo(token=token, name="videoUpload")
|
88 |
-
|
89 |
# Upload the video file
|
90 |
video_file_id = api.upload_file(
|
91 |
token=token,
|
|
|
79 |
# Specify your namespace (username or organization name)
|
80 |
namespace = "Dhrumit1314/videoUpload"
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
# Upload the video file
|
83 |
video_file_id = api.upload_file(
|
84 |
token=token,
|