Spaces:
Runtime error
Runtime error
rvian
commited on
Commit
·
e028986
1
Parent(s):
d9956d6
another one
Browse files
app.py
CHANGED
|
@@ -76,9 +76,11 @@ st.title('Tradutor de datasets (inglês para português)')
|
|
| 76 |
dataset = carregar_dataset()
|
| 77 |
if dataset is not None:
|
| 78 |
mostrar_dataset()
|
| 79 |
-
|
| 80 |
-
modelo, tokenizador = carregar_modelo()
|
| 81 |
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
if st.button("Traduzir dataset") and modelo is not None:
|
| 84 |
traduzir_dataset(dataset)
|
|
|
|
| 76 |
dataset = carregar_dataset()
|
| 77 |
if dataset is not None:
|
| 78 |
mostrar_dataset()
|
| 79 |
+
|
|
|
|
| 80 |
|
| 81 |
+
if dataset is not None:
|
| 82 |
+
with st.button("Carregar modelo"):
|
| 83 |
+
modelo, tokenizador = carregar_modelo()
|
| 84 |
|
| 85 |
if st.button("Traduzir dataset") and modelo is not None:
|
| 86 |
traduzir_dataset(dataset)
|