iamAI123 commited on
Commit
8835a28
·
1 Parent(s): 66e8d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,6 +6,6 @@ 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()
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
+ audio_input = gr.components.Audio(type="filepath")
10
  iface = gr.Interface(fn=convert_to_text, inputs=audio_input, outputs="text")
11
  iface.launch()