Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,19 +19,19 @@ def load_answer(question):
|
|
| 19 |
|
| 20 |
#App UI starts here
|
| 21 |
st.set_page_config(page_title="Tradução do Português para o Inglês.", page_icon=":robot:")
|
| 22 |
-
st.image("https://www.viajenaviagem.com/wp-content/uploads/2020/02/belo-horizonte-pampulha.jpg.webp", caption='
|
| 23 |
st.header("Tradução do Português para o inglês.")
|
| 24 |
st.subheader("Digite uma frase em português para tradução. Para melhores resultados, coloque um ponto final na frase.")
|
| 25 |
|
| 26 |
#Gets the user input
|
| 27 |
def get_text():
|
| 28 |
-
input_text = st.text_input("
|
| 29 |
return input_text
|
| 30 |
|
| 31 |
user_input=get_text()
|
| 32 |
response = load_answer(user_input)
|
| 33 |
|
| 34 |
-
submit = st.button('
|
| 35 |
|
| 36 |
if submit:
|
| 37 |
|
|
|
|
| 19 |
|
| 20 |
#App UI starts here
|
| 21 |
st.set_page_config(page_title="Tradução do Português para o Inglês.", page_icon=":robot:")
|
| 22 |
+
st.image("https://www.viajenaviagem.com/wp-content/uploads/2020/02/belo-horizonte-pampulha.jpg.webp", caption='Autoria de Thiago Lanza. Todos os direitos reservados')
|
| 23 |
st.header("Tradução do Português para o inglês.")
|
| 24 |
st.subheader("Digite uma frase em português para tradução. Para melhores resultados, coloque um ponto final na frase.")
|
| 25 |
|
| 26 |
#Gets the user input
|
| 27 |
def get_text():
|
| 28 |
+
input_text = st.text_input("Sua frase em português: ", key="input")
|
| 29 |
return input_text
|
| 30 |
|
| 31 |
user_input=get_text()
|
| 32 |
response = load_answer(user_input)
|
| 33 |
|
| 34 |
+
submit = st.button('Traduzir para inglês')
|
| 35 |
|
| 36 |
if submit:
|
| 37 |
|