sotosbarl commited on
Commit
2bf7bcc
·
verified ·
1 Parent(s): b71828c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -69,8 +69,7 @@ if text:
69
  # text_to_translate2 = text[499:999]
70
  # translated_text2 = translator.translate(text_to_translate2)
71
 
72
- with st.expander("View Full Output", expanded=False):
73
- st.write(generated_text, allow_output_mutation=True)
74
 
75
  st.session_state.history += "Based on the following information" + answer +"answer this question by reasoning step by step:" + text # Add new text to history
76
  out = pipe(st.session_state.history) # Generate output based on history
@@ -79,7 +78,11 @@ if text:
79
 
80
  translated_text2 = translator2.translate(out[0]['generated_text'])
81
 
82
- st.text(translated_text2)
 
 
 
 
83
  # st.text("History: " + st.session_state.history)
84
 
85
  # st.text(output)
 
69
  # text_to_translate2 = text[499:999]
70
  # translated_text2 = translator.translate(text_to_translate2)
71
 
72
+
 
73
 
74
  st.session_state.history += "Based on the following information" + answer +"answer this question by reasoning step by step:" + text # Add new text to history
75
  out = pipe(st.session_state.history) # Generate output based on history
 
78
 
79
  translated_text2 = translator2.translate(out[0]['generated_text'])
80
 
81
+
82
+ with st.expander("View Full Output", expanded=False):
83
+ st.write(translated_text2, allow_output_mutation=True)
84
+
85
+ # st.text(translated_text2)
86
  # st.text("History: " + st.session_state.history)
87
 
88
  # st.text(output)