Spaces:
Paused
Paused
updated
Browse files
app.py
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
|
5 |
model_id = "Gyaneshere/distilhubert-finetuned-gtzan"
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
+
try:
|
4 |
+
from transformers import pipeline
|
5 |
+
except ImportError:
|
6 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", 'transformers'])
|
7 |
+
finally:
|
8 |
+
from transformers import pipeline
|
9 |
|
10 |
|
11 |
model_id = "Gyaneshere/distilhubert-finetuned-gtzan"
|