Yurii Paniv commited on
Commit
aa0bba0
1 Parent(s): 5d9d8c1

Disable scorer until model improves

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. webapp/client.py +1 -1
Dockerfile CHANGED
@@ -4,6 +4,6 @@ WORKDIR /app
4
  RUN apt-get update
5
  RUN apt-get install -y ffmpeg
6
  RUN wget https://github.com/robinhad/voice-recognition-ua/releases/download/v0.4/uk.tflite
7
- RUN wget https://github.com/robinhad/voice-recognition-ua/releases/download/v0.4/kenlm.scorer
8
  RUN pip install -r requirements.txt
9
  CMD uwsgi app.ini --http 0.0.0.0:$PORT
 
4
  RUN apt-get update
5
  RUN apt-get install -y ffmpeg
6
  RUN wget https://github.com/robinhad/voice-recognition-ua/releases/download/v0.4/uk.tflite
7
+ # RUN wget https://github.com/robinhad/voice-recognition-ua/releases/download/v0.4/kenlm.scorer
8
  RUN pip install -r requirements.txt
9
  CMD uwsgi app.ini --http 0.0.0.0:$PORT
webapp/client.py CHANGED
@@ -16,7 +16,7 @@ def client(audio_file, lang="uk"):
16
  model = "./uk.tflite"
17
 
18
  ds = Model(model)
19
- ds.enableExternalScorer("kenlm.scorer")
20
  # sphinx-doc: python_ref_model_stop
21
  model_load_end = timer() - model_load_start
22
  print('Loaded model in {:.3}s.'.format(model_load_end), file=sys.stderr)
 
16
  model = "./uk.tflite"
17
 
18
  ds = Model(model)
19
+ # ds.enableExternalScorer("kenlm.scorer")
20
  # sphinx-doc: python_ref_model_stop
21
  model_load_end = timer() - model_load_start
22
  print('Loaded model in {:.3}s.'.format(model_load_end), file=sys.stderr)