Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ if text:
|
|
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, max_new_tokens=
|
76 |
|
77 |
|
78 |
st.text(st.session_state.history)
|
|
|
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, max_new_tokens=20, do_sample=True, temperature=0.7, top_k=50, top_p=0.95) # Generate output based on history
|
76 |
|
77 |
|
78 |
st.text(st.session_state.history)
|