Commit
•
ba0fbcd
1
Parent(s):
b009916
Update modelisation_seq2seq_tab.py
Browse files
tabs/modelisation_seq2seq_tab.py
CHANGED
@@ -119,8 +119,9 @@ def display_translation(n1, Lang, model_type):
|
|
119 |
responses = p.map(fetch_translation, params)
|
120 |
|
121 |
for response, s_text, s_ref in zip(responses, s, s_trad_ref):
|
|
|
122 |
st.write(f"**{source} :** :blue[{s_text}]")
|
123 |
-
st.write(f"**{target} :** {
|
124 |
st.write(f"**ref. :** {s_ref}")
|
125 |
st.write("")
|
126 |
with placeholder:
|
|
|
119 |
responses = p.map(fetch_translation, params)
|
120 |
|
121 |
for response, s_text, s_ref in zip(responses, s, s_trad_ref):
|
122 |
+
s_trad.append(response.json())
|
123 |
st.write(f"**{source} :** :blue[{s_text}]")
|
124 |
+
st.write(f"**{target} :** {s_trad[-1]}")
|
125 |
st.write(f"**ref. :** {s_ref}")
|
126 |
st.write("")
|
127 |
with placeholder:
|