Spaces:
Sleeping
Sleeping
Dhrumit1314
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,9 @@ def upload_video():
|
|
84 |
# Upload the video file
|
85 |
video_file_id = api.upload_file(
|
86 |
token=token,
|
87 |
-
path_or_fileobj=video_path
|
|
|
|
|
88 |
)
|
89 |
|
90 |
transcript = transcribe_audio(video_path)
|
|
|
84 |
# Upload the video file
|
85 |
video_file_id = api.upload_file(
|
86 |
token=token,
|
87 |
+
path_or_fileobj=video_path,
|
88 |
+
repo_id=namespace, # replace with your repository ID
|
89 |
+
path_in_repo=video.filename # replace with the desired path in the repository
|
90 |
)
|
91 |
|
92 |
transcript = transcribe_audio(video_path)
|