SinaAhmadi
commited on
Commit
•
e835edc
1
Parent(s):
e6a3e60
Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,7 @@ languages_scripts = {
|
|
33 |
}
|
34 |
|
35 |
def normalize(text, language_script):
|
36 |
-
|
37 |
-
test_data.set_item(text)
|
38 |
-
|
39 |
cfg_file = './models/%s/config.yaml'
|
40 |
ckpt = "./models/%s/best.ckpt"%languages_scripts[language_script]
|
41 |
|
@@ -79,6 +77,7 @@ def normalize(text, language_script):
|
|
79 |
tokenizer=tokenizer,
|
80 |
sequence_encoder=sequence_encoder,
|
81 |
)
|
|
|
82 |
# test_data.set_item(INPUT.rstrip())
|
83 |
|
84 |
cfg=test_cfg
|
|
|
33 |
}
|
34 |
|
35 |
def normalize(text, language_script):
|
36 |
+
|
|
|
|
|
37 |
cfg_file = './models/%s/config.yaml'
|
38 |
ckpt = "./models/%s/best.ckpt"%languages_scripts[language_script]
|
39 |
|
|
|
77 |
tokenizer=tokenizer,
|
78 |
sequence_encoder=sequence_encoder,
|
79 |
)
|
80 |
+
test_data.set_item(text)
|
81 |
# test_data.set_item(INPUT.rstrip())
|
82 |
|
83 |
cfg=test_cfg
|