tonic commited on
Commit
b7f5537
·
1 Parent(s): dc677ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -14,7 +14,6 @@ import cohere
14
  import os
15
  import re
16
  import pandas as pd
17
- import pandas as pd
18
 
19
 
20
  title = "# Welcome to AyaTonic"
@@ -101,7 +100,7 @@ def process_text_to_audio(text, translatefrom, translateto):
101
  return result[0]
102
 
103
  class OCRProcessor:
104
- def __init__(self, langs=["en"]):
105
  self.langs = langs
106
  self.det_processor, self.det_model = load_det_processor(), load_det_model()
107
  self.rec_model, self.rec_processor = load_rec_model(), load_rec_processor()
 
14
  import os
15
  import re
16
  import pandas as pd
 
17
 
18
 
19
  title = "# Welcome to AyaTonic"
 
100
  return result[0]
101
 
102
  class OCRProcessor:
103
+ def __init__(self, langs=["en"]): #add input language code
104
  self.langs = langs
105
  self.det_processor, self.det_model = load_det_processor(), load_det_model()
106
  self.rec_model, self.rec_processor = load_rec_model(), load_rec_processor()