Adding time display...
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from collections import namedtuple
|
|
4 |
import random
|
5 |
import requests
|
6 |
import json
|
7 |
-
|
8 |
from codetiming import Timer
|
9 |
import streamlit as st
|
10 |
|
@@ -184,6 +184,8 @@ st.write(st.session_state['cnn'])
|
|
184 |
st.write(st.session_state['npr'])
|
185 |
st.write(st.session_state['num_clusters'])
|
186 |
|
|
|
|
|
187 |
|
188 |
# Form used to take 3 menu inputs
|
189 |
with st.form(key='columns_in_form'):
|
@@ -224,5 +226,6 @@ with st.form(key='columns_in_form'):
|
|
224 |
st.write(f"""Text approximately {len(digestor.text.split(" ") )} words.""")
|
225 |
|
226 |
|
|
|
227 |
|
228 |
"st.session_state object:", st.session_state
|
|
|
4 |
import random
|
5 |
import requests
|
6 |
import json
|
7 |
+
import datetime as dt
|
8 |
from codetiming import Timer
|
9 |
import streamlit as st
|
10 |
|
|
|
184 |
st.write(st.session_state['npr'])
|
185 |
st.write(st.session_state['num_clusters'])
|
186 |
|
187 |
+
st.session_state['dt'] = dt.now()
|
188 |
+
|
189 |
|
190 |
# Form used to take 3 menu inputs
|
191 |
with st.form(key='columns_in_form'):
|
|
|
226 |
st.write(f"""Text approximately {len(digestor.text.split(" ") )} words.""")
|
227 |
|
228 |
|
229 |
+
st.write(digestor.timer.timers.items())
|
230 |
|
231 |
"st.session_state object:", st.session_state
|