Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,16 @@
|
|
1 |
# Imports
|
2 |
from pytube import YouTube
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
from huggingsound import SpeechRecognitionModel
|
4 |
import torch
|
5 |
from transformers import pipeline
|
@@ -10,13 +21,6 @@ import gradio as gr
|
|
10 |
|
11 |
|
12 |
|
13 |
-
import subprocess # process in the os
|
14 |
-
from subprocess import STDOUT, check_call #os process manipulation
|
15 |
-
|
16 |
-
|
17 |
-
"""install libsndfile on the linux machine"""
|
18 |
-
proc = subprocess.Popen('apt-get install libsndfile1', shell=True, stdin=None, stdout=open(os.devnull,"wb"), stderr=STDOUT, executable="/bin/bash")
|
19 |
-
proc.wait()
|
20 |
|
21 |
|
22 |
|
|
|
1 |
# Imports
|
2 |
from pytube import YouTube
|
3 |
+
|
4 |
+
|
5 |
+
import subprocess # process in the os
|
6 |
+
from subprocess import STDOUT, check_call #os process manipulation
|
7 |
+
|
8 |
+
|
9 |
+
"""install libsndfile on the linux machine"""
|
10 |
+
proc = subprocess.Popen('apt-get install libsndfile1', shell=True, stdin=None, stdout=open(os.devnull,"wb"), stderr=STDOUT, executable="/bin/bash")
|
11 |
+
proc.wait()
|
12 |
+
|
13 |
+
|
14 |
from huggingsound import SpeechRecognitionModel
|
15 |
import torch
|
16 |
from transformers import pipeline
|
|
|
21 |
|
22 |
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
|
26 |
|