Add-Vishnu commited on
Commit
bf223ba
·
1 Parent(s): 7ab5ed2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -36,14 +36,15 @@ def transcribe(audio,):
36
 
37
  print("--------------------------")
38
  print(f"Execution time: {end_time - start_time} seconds")
39
- return transcription
40
 
41
 
42
 
43
  demo = gr.Interface(
44
  transcribe,
45
- gr.Audio(sources=["microphone"]),
46
- gr.Textbox(label="CLI_Transcription")
 
47
  )
48
 
49
  demo.launch()
 
36
 
37
  print("--------------------------")
38
  print(f"Execution time: {end_time - start_time} seconds")
39
+ return transcription, (end_time - start_time)
40
 
41
 
42
 
43
  demo = gr.Interface(
44
  transcribe,
45
+ inputs = "microphone",
46
+ # gr.Audio(sources=["microphone"]),
47
+ outputs = [gr.Textbox(label="CLI_Transcription"),gr.Textbox(label="Time taken for Transcription")]
48
  )
49
 
50
  demo.launch()