Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,21 +9,20 @@ import spaces
|
|
| 9 |
|
| 10 |
ACCESS_KEY = os.getenv("ACCESS_KEY")
|
| 11 |
|
| 12 |
-
torch.set_num_threads(1)
|
| 13 |
-
torch.set_num_interop_threads(1)
|
| 14 |
torch.use_deterministic_algorithms(True)
|
| 15 |
torch.backends.cudnn.deterministic = True
|
| 16 |
torch.backends.cudnn.benchmark = False
|
| 17 |
torch.backends.cuda.matmul.allow_tf32 = False
|
| 18 |
torch.backends.cudnn.allow_tf32 = False
|
| 19 |
|
|
|
|
| 20 |
def truncate_video(video_file):
|
| 21 |
clip = VideoFileClip(video_file)
|
| 22 |
truncated_clip = clip.subclip(0, min(15, clip.duration))
|
| 23 |
truncated_video_file = "temp_truncated_video.mp4"
|
| 24 |
truncated_clip.write_videofile(truncated_video_file, codec="libx264", audio_codec="aac")
|
| 25 |
return truncated_video_file
|
| 26 |
-
|
| 27 |
def clone_repo():
|
| 28 |
repo_url = "https://github.com/NeeravSood/AllMark-MVP.git"
|
| 29 |
repo_path = "./repository"
|
|
|
|
| 9 |
|
| 10 |
ACCESS_KEY = os.getenv("ACCESS_KEY")
|
| 11 |
|
|
|
|
|
|
|
| 12 |
torch.use_deterministic_algorithms(True)
|
| 13 |
torch.backends.cudnn.deterministic = True
|
| 14 |
torch.backends.cudnn.benchmark = False
|
| 15 |
torch.backends.cuda.matmul.allow_tf32 = False
|
| 16 |
torch.backends.cudnn.allow_tf32 = False
|
| 17 |
|
| 18 |
+
'''
|
| 19 |
def truncate_video(video_file):
|
| 20 |
clip = VideoFileClip(video_file)
|
| 21 |
truncated_clip = clip.subclip(0, min(15, clip.duration))
|
| 22 |
truncated_video_file = "temp_truncated_video.mp4"
|
| 23 |
truncated_clip.write_videofile(truncated_video_file, codec="libx264", audio_codec="aac")
|
| 24 |
return truncated_video_file
|
| 25 |
+
'''
|
| 26 |
def clone_repo():
|
| 27 |
repo_url = "https://github.com/NeeravSood/AllMark-MVP.git"
|
| 28 |
repo_path = "./repository"
|