lpinnova commited on
Commit
83ba79c
·
1 Parent(s): 1a16094

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -6,6 +6,19 @@ def convert_to_text(audio_path : str) -> str:
6
  result = model.transcribe(audio_path)
7
  return result["text"]
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  audio_input = gr.components.Audio(type="filepath")
10
  iface = gr.Interface(fn=convert_to_text, inputs=audio_input, outputs="text")
11
  iface.launch()
 
6
  result = model.transcribe(audio_path)
7
  return result["text"]
8
 
9
+ iface = gr.Interface(fn=transcribe_audio, inputs=audio_input,
10
+ outputs=output_text, title="AUDIO -TEXTO",
11
+ description="Subir el Audio y Presionar el botón 'SUBMIT'\
12
+ ",
13
+ #theme='freddyaboulton/dracula_revamped'
14
+
15
+ theme = gr.themes.Soft(),
16
+
17
+
18
+ css='div {background-size: cover; background-repeat: no-repeat; margin-left: auto; margin-right: auto; width: 100%;\
19
+ background-image: url(""); repeat 0 0;}')\
20
+ .launch(share=True)
21
+
22
  audio_input = gr.components.Audio(type="filepath")
23
  iface = gr.Interface(fn=convert_to_text, inputs=audio_input, outputs="text")
24
  iface.launch()