Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -63,6 +63,11 @@ def has_audio_stream(path: str) -> bool:
|
|
| 63 |
return bool(result.stdout.strip())
|
| 64 |
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
def _encode_frames(
|
| 67 |
frame_bytes: list[bytes],
|
| 68 |
timestamps: list[float],
|
|
|
|
| 63 |
return bool(result.stdout.strip())
|
| 64 |
|
| 65 |
|
| 66 |
+
@spaces.GPU(duration=1)
|
| 67 |
+
def _gpu_warmup():
|
| 68 |
+
pass
|
| 69 |
+
|
| 70 |
+
|
| 71 |
def _encode_frames(
|
| 72 |
frame_bytes: list[bytes],
|
| 73 |
timestamps: list[float],
|