Spaces:
Runtime error
Runtime error
AHHHHHHHHHHHHHHHHHHHHHHHH
Browse files
app.py
CHANGED
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
demo = gr.Blocks()
|
2 |
with demo:
|
3 |
gr.Markdown("Clasificacion de Audio a Sentimientos")
|
|
|
1 |
+
def transcribe(audio):
|
2 |
+
text = trans(audio)["text"]
|
3 |
+
return text
|
4 |
+
|
5 |
+
def clasificacion(text):
|
6 |
+
return clasificador(text)[0]["label"]
|
7 |
+
|
8 |
+
|
9 |
+
def clasifica_imagen(img):
|
10 |
+
class_img = imagen(img)
|
11 |
+
return class_img
|
12 |
+
|
13 |
demo = gr.Blocks()
|
14 |
with demo:
|
15 |
gr.Markdown("Clasificacion de Audio a Sentimientos")
|