Demosthene-OR
commited on
Commit
•
aeb9a86
1
Parent(s):
e48f480
Update modelisation_seq2seq_tab.py
Browse files
tabs/modelisation_seq2seq_tab.py
CHANGED
@@ -89,8 +89,7 @@ def display_translation(n1, Lang,model_type):
|
|
89 |
st.write("<p style='text-align:center;background-color:red; color:white')>Score Bleu = "+str(int(round(corpus_bleu(s_trad,[s_trad_ref]).score,0)))+"%</p>", \
|
90 |
unsafe_allow_html=True)
|
91 |
'''
|
92 |
-
def fetch_translation(url):
|
93 |
-
print("->"+url)
|
94 |
return requests.get(url)
|
95 |
|
96 |
def display_translation(n1, Lang, model_type):
|
|
|
89 |
st.write("<p style='text-align:center;background-color:red; color:white')>Score Bleu = "+str(int(round(corpus_bleu(s_trad,[s_trad_ref]).score,0)))+"%</p>", \
|
90 |
unsafe_allow_html=True)
|
91 |
'''
|
92 |
+
async def fetch_translation(url):
|
|
|
93 |
return requests.get(url)
|
94 |
|
95 |
def display_translation(n1, Lang, model_type):
|