AnanthulaShravya commited on
Commit
5edae20
·
verified ·
1 Parent(s): bfe5fae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -14
app.py CHANGED
@@ -1,7 +1,7 @@
1
 
2
  import streamlit as st
3
  import requests
4
- from streamlit_extras.capture import stdout
5
  # st.title('Number Doubler')
6
 
7
 
@@ -25,19 +25,8 @@ til_content = st.text_area('Enter what you learnt today:',
25
  key='til_content', help='Enter what you learnt today')
26
 
27
  if st.button("Get Feedback"):
28
- with st.status(
29
- "🤖 **Analysing TIL...**", state="running", expanded=True
30
- ) as status:
31
- with st.container(height=500, border=False):
32
- log_container = st.empty()
33
- with stdout(log_container.code, terminator=""):
34
- inputs = {"content": til_content}
35
- results = kickoff(inputs=inputs)
36
- status.update(
37
- label="✅ Feedback ready!",
38
- state="complete",
39
- expanded=False,
40
- )
41
 
42
  # if st.button('Double'):
43
  # if user_input:
 
1
 
2
  import streamlit as st
3
  import requests
4
+
5
  # st.title('Number Doubler')
6
 
7
 
 
25
  key='til_content', help='Enter what you learnt today')
26
 
27
  if st.button("Get Feedback"):
28
+ inputs = {"content": til_content}
29
+ results = kickoff(inputs=inputs)
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  # if st.button('Double'):
32
  # if user_input: