Spaces:
Runtime error
Runtime error
Vignesh1997
commited on
Commit
•
8e3c679
1
Parent(s):
45c6e96
Update app.py
Browse files
app.py
CHANGED
@@ -177,7 +177,8 @@ def find_algnments(
|
|
177 |
return list(set(align_words))
|
178 |
|
179 |
|
180 |
-
st.title("
|
|
|
181 |
st.write(
|
182 |
"M2M100 is a multilingual encoder-decoder (seq-to-seq) model trained for Many-to-Many multilingual translation. It was introduced in this paper https://arxiv.org/abs/2010.11125 and first released in https://github.com/pytorch/fairseq/tree/master/examples/m2m_100 repository. The model that can directly translate between the 9,900 directions of 100 languages.\n"
|
183 |
)
|
@@ -216,7 +217,7 @@ if st.button("Run"):
|
|
216 |
|
217 |
time_end = time.time()
|
218 |
alignments = find_algnments(user_input, translated_text, bert_tokenizer, bert_model)
|
219 |
-
for
|
220 |
-
st.success(
|
221 |
|
222 |
st.write(f"Computation time: {round((time_end-time_start),3)} sec")
|
|
|
177 |
return list(set(align_words))
|
178 |
|
179 |
|
180 |
+
st.title("Multilingual alignment")
|
181 |
+
st.write("The pretranined models used to make the above setup are ")
|
182 |
st.write(
|
183 |
"M2M100 is a multilingual encoder-decoder (seq-to-seq) model trained for Many-to-Many multilingual translation. It was introduced in this paper https://arxiv.org/abs/2010.11125 and first released in https://github.com/pytorch/fairseq/tree/master/examples/m2m_100 repository. The model that can directly translate between the 9,900 directions of 100 languages.\n"
|
184 |
)
|
|
|
217 |
|
218 |
time_end = time.time()
|
219 |
alignments = find_algnments(user_input, translated_text, bert_tokenizer, bert_model)
|
220 |
+
for string in alignments:
|
221 |
+
st.success(string)
|
222 |
|
223 |
st.write(f"Computation time: {round((time_end-time_start),3)} sec")
|