Harveenchadha commited on
Commit
0b02e4c
1 Parent(s): 4a3505a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -42,9 +42,13 @@ model = Wav2Vec2ForCTC.from_pretrained("Harveenchadha/vakyansh-wav2vec2-hindi-hi
42
 
43
 
44
 
45
- input_ = gr.inputs.Audio(source="microphone", type="filepath")
46
  #input_ = gr.inputs.Audio(source="microphone", type="numpy")
 
 
 
 
47
 
48
- gr.Interface(parse_transcription, inputs = input_, outputs="text",
49
- streaming=True,
50
  analytics_enabled=False, show_tips=False, enable_queue=True).launch(inline=False);
 
42
 
43
 
44
 
45
+ input_ = gr.Audio(source="microphone", type="filepath")
46
  #input_ = gr.inputs.Audio(source="microphone", type="numpy")
47
+ txtbox = gr.Textbox(
48
+ label="Output from model will appear here:",
49
+ lines=5
50
+ )
51
 
52
+ gr.Interface(parse_transcription, inputs = input_, outputs=txtbox,
53
+ streaming=True, interactive=True,
54
  analytics_enabled=False, show_tips=False, enable_queue=True).launch(inline=False);