nimool commited on
Commit
8eecbb0
1 Parent(s): 787c99c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -40,7 +40,10 @@ model_id = "SeyedAli/Persian-Speech-Transcription-Wav2Vec2-V1"
40
  processor = Wav2Vec2Processor.from_pretrained(model_id)
41
  model = Wav2Vec2ForCTC.from_pretrained(model_id)
42
 
43
- input_ = gr.Audio()
 
 
 
44
  txtbox = gr.Textbox(
45
  label="persian text output:",
46
  lines=5
 
40
  processor = Wav2Vec2Processor.from_pretrained(model_id)
41
  model = Wav2Vec2ForCTC.from_pretrained(model_id)
42
 
43
+ input_ = gr.Audio(source='microphone',
44
+ type='filepath',
45
+ show_download_button=True,)
46
+
47
  txtbox = gr.Textbox(
48
  label="persian text output:",
49
  lines=5