Hugo Garcia-Cotte commited on
Commit
f5d1268
1 Parent(s): cb7550a

Finally something working

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import streamlit as st
 
2
  import pexpect
3
  import time
4
 
@@ -32,5 +33,7 @@ while True:
32
  # Display the list of messages in the placeholder
33
  for msg in st.session_state['messages']:
34
  st.write(msg)
 
 
35
  #Try again in X sec
36
  time.sleep(0.5)
 
1
  import streamlit as st
2
+ import streamlit-scrollable-textbox
3
  import pexpect
4
  import time
5
 
 
33
  # Display the list of messages in the placeholder
34
  for msg in st.session_state['messages']:
35
  st.write(msg)
36
+ long_text = "Input here"
37
+ stx.scrollableTextbox(str(st.session_state['messages']),height = 300)
38
  #Try again in X sec
39
  time.sleep(0.5)
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  openai
2
- streamlit
3
  pexpect
 
 
 
1
  openai
 
2
  pexpect
3
+ streamlit
4
+ streamlit-scrollable-textbox