Spaces:
Runtime error
Runtime error
funciones
Browse files
.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|