Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,10 @@ english_question = st.text_input("Question:")
|
|
| 37 |
if st.button("Translate"):
|
| 38 |
if english_question:
|
| 39 |
translated = translate_question(english_question)
|
| 40 |
-
|
|
|
|
| 41 |
else:
|
| 42 |
st.write("Please enter a question.")
|
| 43 |
|
|
|
|
|
|
|
|
|
| 37 |
if st.button("Translate"):
|
| 38 |
if english_question:
|
| 39 |
translated = translate_question(english_question)
|
| 40 |
+
translated_result = translated[0]
|
| 41 |
+
st.write("English translation of the user text:", translated_result)
|
| 42 |
else:
|
| 43 |
st.write("Please enter a question.")
|
| 44 |
|
| 45 |
+
|
| 46 |
+
|