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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -6,19 +6,12 @@ def convert_to_text(audio_path : str) -> str:
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()
 
6
  result = model.transcribe(audio_path)
7
  return result["text"]
8
 
9
+
10
+ audio_input = gr.components.Audio(type="filepath")
11
+ iface = gr.Interface(fn=convert_to_text, inputs=audio_input, outputs="text",title="AUDIO -TEXTO",
12
  description="Subir el Audio y Presionar el bot贸n 'SUBMIT'\
13
  ",
14
  #theme='freddyaboulton/dracula_revamped'
15
 
16
+ theme = gr.themes.Soft(),)
 
 
 
 
 
 
 
 
17
  iface.launch()