Bishan commited on
Commit
4ba2ace
·
1 Parent(s): bae0e16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -102,7 +102,8 @@ model_id = "Harveenchadha/vakyansh-wav2vec2-hindi-him-4200"
102
  processor = Wav2Vec2Processor.from_pretrained(model_id)
103
  model = Wav2Vec2ForCTC.from_pretrained(model_id)
104
 
105
- input_ = gr.inputs.File(source="upload", type="filepath") # Change input source to "upload" and type to "audio"
 
106
  txtbox = gr.Textbox(
107
  label="Output from the model will appear here:",
108
  lines=5
 
102
  processor = Wav2Vec2Processor.from_pretrained(model_id)
103
  model = Wav2Vec2ForCTC.from_pretrained(model_id)
104
 
105
+ # input_ = gr.inputs.File(source="upload", type="filepath") # Change input source to "upload" and type to "audio"
106
+ input_ = gr.Audio(source="upload", type="filepath")
107
  txtbox = gr.Textbox(
108
  label="Output from the model will appear here:",
109
  lines=5