Spaces:
Runtime error
Runtime error
update for use with zero
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def transcribe_long_audio(audio_path, transcriber, chunk_duration=30):
|
|
| 32 |
print(f"Error in transcribe_long_audio: {e}")
|
| 33 |
return f"Error processing audio: {e}"
|
| 34 |
|
| 35 |
-
@spaces.GPU
|
| 36 |
def main():
|
| 37 |
device = 0 if torch.cuda.is_available() else -1
|
| 38 |
|
|
|
|
| 32 |
print(f"Error in transcribe_long_audio: {e}")
|
| 33 |
return f"Error processing audio: {e}"
|
| 34 |
|
| 35 |
+
@spaces.GPU
|
| 36 |
def main():
|
| 37 |
device = 0 if torch.cuda.is_available() else -1
|
| 38 |
|