Spaces:
Runtime error
Runtime error
Commit
·
0e84678
1
Parent(s):
1bf7293
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,10 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
import spacy
|
4 |
import os
|
5 |
-
os.system('pip install https://huggingface.co/Armandoliv/es_pipeline/resolve/main/es_pipeline-any-py3-none-any.whl')
|
6 |
-
os.system('pip install git+https://github.com/openai/whisper.git')
|
7 |
import whisper
|
8 |
-
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
9 |
-
|
10 |
|
|
|
|
|
11 |
nlp_ner = spacy.load("es_pipeline")
|
12 |
|
13 |
def main_generator(youtube_id:str):
|
|
|
2 |
import torch
|
3 |
import spacy
|
4 |
import os
|
|
|
|
|
5 |
import whisper
|
|
|
|
|
6 |
|
7 |
+
os.system('pip install https://huggingface.co/Armandoliv/es_pipeline/resolve/main/es_pipeline-any-py3-none-any.whl')
|
8 |
+
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
9 |
nlp_ner = spacy.load("es_pipeline")
|
10 |
|
11 |
def main_generator(youtube_id:str):
|