Update app.py
Browse files
app.py
CHANGED
|
@@ -7,18 +7,9 @@ import gradio as gr
|
|
| 7 |
import spaces
|
| 8 |
import torch
|
| 9 |
|
| 10 |
-
from torch.serialization import add_safe_globals
|
| 11 |
-
from torch.torch_version import TorchVersion
|
| 12 |
-
|
| 13 |
-
add_safe_globals([TorchVersion])
|
| 14 |
-
|
| 15 |
# faster-whisper (CTranslate2)
|
| 16 |
from faster_whisper import WhisperModel
|
| 17 |
|
| 18 |
-
from pyannote.audio.core.task import Specifications, Problem
|
| 19 |
-
|
| 20 |
-
# Permitir la clase Specifications de manera segura
|
| 21 |
-
torch.serialization.add_safe_globals([Specifications, Problem])
|
| 22 |
|
| 23 |
|
| 24 |
|
|
|
|
| 7 |
import spaces
|
| 8 |
import torch
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# faster-whisper (CTranslate2)
|
| 11 |
from faster_whisper import WhisperModel
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
|