Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
|
| 2 |
import streamlit as st
|
| 3 |
import requests
|
| 4 |
-
|
| 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 |
-
|
| 29 |
-
|
| 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:
|