cdactvm commited on
Commit
7aaf14b
·
verified ·
1 Parent(s): aeee6cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,8 +19,8 @@ p2 = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-h
19
  os.system('git clone https://github.com/irshadbhat/indic-trans.git')
20
  os.system('pip install ./indic-trans/.')
21
 
22
- HF_TOKEN = os.getenv('HF_TOKEN')
23
- hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "asr_demo")
24
 
25
  from indictrans import Transliterator
26
  trn = Transliterator(source='ori', target='eng', build_lookup=True)
@@ -327,7 +327,7 @@ demo=gr.Interface(
327
  ],
328
  allow_flagging="manual",
329
  flagging_options=["Language error", "English transliteration error", "Other"],
330
- flagging_callback=hf_writer,
331
  title="Automatic Speech Recognition",
332
  description = "Demo for Automatic Speech Recognition. Use microphone to record speech. Please press Record button. Initially it will take some time to load the model. The recognized text will appear in the output textbox",
333
  ).launch()
 
19
  os.system('git clone https://github.com/irshadbhat/indic-trans.git')
20
  os.system('pip install ./indic-trans/.')
21
 
22
+ #HF_TOKEN = os.getenv('HF_TOKEN')
23
+ #hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "asr_demo")
24
 
25
  from indictrans import Transliterator
26
  trn = Transliterator(source='ori', target='eng', build_lookup=True)
 
327
  ],
328
  allow_flagging="manual",
329
  flagging_options=["Language error", "English transliteration error", "Other"],
330
+ #flagging_callback=hf_writer,
331
  title="Automatic Speech Recognition",
332
  description = "Demo for Automatic Speech Recognition. Use microphone to record speech. Please press Record button. Initially it will take some time to load the model. The recognized text will appear in the output textbox",
333
  ).launch()