Neha13 commited on
Commit
cf46fd5
·
verified ·
1 Parent(s): 00db3eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- st.write("English translation of the user text:", translated)
 
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
+