Santenana commited on
Commit
7f6d47e
·
1 Parent(s): 2cde552

AHHHHHHHHHHHHHHHHHHHHHHHH

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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")