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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ 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="audio") # 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
  txtbox = gr.Textbox(
107
  label="Output from the model will appear here:",
108
  lines=5