Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ if text:
|
|
69 |
# text_to_translate2 = text[499:999]
|
70 |
# translated_text2 = translator.translate(text_to_translate2)
|
71 |
|
72 |
-
|
73 |
-
st.write(
|
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
|
|
|
69 |
# text_to_translate2 = text[499:999]
|
70 |
# translated_text2 = translator.translate(text_to_translate2)
|
71 |
|
72 |
+
ith 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
|