Spaces:
Runtime error
Runtime error
rvian
commited on
Commit
·
c034f10
1
Parent(s):
c18735b
aa
Browse files
app.py
CHANGED
@@ -79,7 +79,8 @@ if dataset is not None:
|
|
79 |
|
80 |
if st.button("Carregar modelo"):
|
81 |
_modelo, _tokenizador = carregar_modelo(modelos_opcao)
|
|
|
82 |
|
83 |
-
if st.button("Traduzir dataset") and _modelo is not None:
|
84 |
-
|
85 |
-
|
|
|
79 |
|
80 |
if st.button("Carregar modelo"):
|
81 |
_modelo, _tokenizador = carregar_modelo(modelos_opcao)
|
82 |
+
print(f"{_modelo.name_or_path} carregado")
|
83 |
|
84 |
+
if st.button("Traduzir dataset") and _modelo is not None:
|
85 |
+
traduzir_dataset(dataset, _modelo, _tokenizador)
|
86 |
+
resultado()
|