Edmon02 commited on
Commit
51dcd32
1 Parent(s): b35d68a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,7 +70,7 @@ replacements = [
70
  ("բ", "b"),
71
  ("գ", "g"),
72
  ("դ", "d"),
73
- ("զ", "z"),
74
  ("է", "e"),
75
  ("ը", "e'"),
76
  ("թ", "t'"),
@@ -147,7 +147,7 @@ def predict(text, speaker):
147
 
148
  text = process_text(text)
149
 
150
- text = cleanup_text({'normalized_text': text})['normalized_text']
151
 
152
  inputs = processor(text=text, return_tensors="pt")
153
 
 
70
  ("բ", "b"),
71
  ("գ", "g"),
72
  ("դ", "d"),
73
+ ("զ", "z"),
74
  ("է", "e"),
75
  ("ը", "e'"),
76
  ("թ", "t'"),
 
147
 
148
  text = process_text(text)
149
 
150
+ text = cleanup_text(text)
151
 
152
  inputs = processor(text=text, return_tensors="pt")
153