Commit
•
5cbc664
1
Parent(s):
a2f73c0
Update modelisation_seq2seq_tab.py
Browse files
tabs/modelisation_seq2seq_tab.py
CHANGED
@@ -433,15 +433,11 @@ def run():
|
|
433 |
""")
|
434 |
, unsafe_allow_html=True)
|
435 |
st.write("<center><h5>"+tr("Architecture du modèle utilisé")+":</h5>", unsafe_allow_html=True)
|
436 |
-
# URL de votre endpoint FastAPI avec les paramètres de requête
|
437 |
-
url = "https://demosthene-or-api-avr23-cds-translation.hf.space/small_vocab/plot_model"
|
438 |
if (chosen_id == "tab1"):
|
439 |
-
|
440 |
else:
|
441 |
-
|
442 |
-
|
443 |
-
response = requests.get(url, params=params)
|
444 |
-
st.image("https://demosthene-or-api-avr23-cds-translation.hf.space/small_vocab/plot_model?lang_tgt="+Lang[-2:]+"&model_type=rnn",use_column_width=True)
|
445 |
st.write("</center>", unsafe_allow_html=True)
|
446 |
|
447 |
|
|
|
433 |
""")
|
434 |
, unsafe_allow_html=True)
|
435 |
st.write("<center><h5>"+tr("Architecture du modèle utilisé")+":</h5>", unsafe_allow_html=True)
|
|
|
|
|
436 |
if (chosen_id == "tab1"):
|
437 |
+
st.image("https://demosthene-or-api-avr23-cds-translation.hf.space/small_vocab/plot_model?lang_tgt="+Lang[-2:]+"&model_type=rnn",use_column_width=True)
|
438 |
else:
|
439 |
+
st.image("https://demosthene-or-api-avr23-cds-translation.hf.space/small_vocab/plot_model?lang_tgt="+Lang[-2:]+"&model_type=transformer",use_column_width=True)
|
440 |
+
|
|
|
|
|
441 |
st.write("</center>", unsafe_allow_html=True)
|
442 |
|
443 |
|