Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,13 +9,14 @@ import spaces
|
|
| 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))
|
|
|
|
| 9 |
|
| 10 |
ACCESS_KEY = os.getenv("ACCESS_KEY")
|
| 11 |
|
| 12 |
+
'''
|
| 13 |
torch.use_deterministic_algorithms(True)
|
| 14 |
torch.backends.cudnn.deterministic = True
|
| 15 |
torch.backends.cudnn.benchmark = False
|
| 16 |
torch.backends.cuda.matmul.allow_tf32 = False
|
| 17 |
torch.backends.cudnn.allow_tf32 = False
|
| 18 |
|
| 19 |
+
|
| 20 |
def truncate_video(video_file):
|
| 21 |
clip = VideoFileClip(video_file)
|
| 22 |
truncated_clip = clip.subclip(0, min(15, clip.duration))
|