Spaces:
Build error
Build error
adjoint-bass
commited on
Commit
•
5b077dd
1
Parent(s):
c5014d7
"changed app.py"
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
import hopsworks
|
4 |
-
from pytube import
|
5 |
|
6 |
amp = hopsworks.login()
|
7 |
data = amp.get_model_registry()
|
@@ -13,7 +13,7 @@ def live_performance(audio):
|
|
13 |
return text
|
14 |
|
15 |
def url_performance(link):
|
16 |
-
selected_video =
|
17 |
|
18 |
|
19 |
with gr.Blocks() as demo:
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
import hopsworks
|
4 |
+
from pytube import YouTube
|
5 |
|
6 |
amp = hopsworks.login()
|
7 |
data = amp.get_model_registry()
|
|
|
13 |
return text
|
14 |
|
15 |
def url_performance(link):
|
16 |
+
selected_video = YouTube(str(link), only_audio = True)
|
17 |
|
18 |
|
19 |
with gr.Blocks() as demo:
|