adhinojosa commited on
Commit
77b2de7
·
1 Parent(s): ffd854c

la interface del chat es correcta

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -27,9 +27,11 @@ if prompt := st.chat_input("Pregúntale a Don Simón"):
27
  with st.chat_message("user"):
28
  st.markdown(prompt)
29
 
30
- with st.chat_message("assistant"):
31
- stream = model(prompt,max_new_tokens=50)
32
- response = st.write(stream)
33
- st.session_state.messages.append({"role": "assistant", "content": response})
 
34
 
35
 
 
 
27
  with st.chat_message("user"):
28
  st.markdown(prompt)
29
 
30
+ with st.chat_message("assistant"):
31
+ stream = model(prompt,max_new_tokens=50)
32
+ #stream = prompt
33
+ response = st.write(stream)
34
+ st.session_state.messages.append({"role": "assistant", "content": stream})
35
 
36
 
37
+ print(st.session_state)