Spaces:
Runtime error
Runtime error
Paula Leonova
commited on
Commit
•
8d02a0a
1
Parent(s):
4c35138
Modify loading success details
Browse files
app.py
CHANGED
@@ -36,12 +36,12 @@ with st.form(key='my_form'):
|
|
36 |
with st.spinner('Loading pretrained summarizer mnli model...'):
|
37 |
start = time.time()
|
38 |
summarizer = load_summary_model()
|
39 |
-
st.success(f'Time taken to load model: {round(time.time() - start,4)} seconds')
|
40 |
|
41 |
with st.spinner('Loading pretrained classifier mnli model...'):
|
42 |
start = time.time()
|
43 |
classifier = load_model()
|
44 |
-
st.success(f'Time taken to load model: {round(time.time() - start,4)} seconds')
|
45 |
|
46 |
|
47 |
if submit_button:
|
|
|
36 |
with st.spinner('Loading pretrained summarizer mnli model...'):
|
37 |
start = time.time()
|
38 |
summarizer = load_summary_model()
|
39 |
+
st.success(f'Time taken to load summarizer mnli model: {round(time.time() - start,4)} seconds')
|
40 |
|
41 |
with st.spinner('Loading pretrained classifier mnli model...'):
|
42 |
start = time.time()
|
43 |
classifier = load_model()
|
44 |
+
st.success(f'Time taken to load classifier mnli model: {round(time.time() - start,4)} seconds')
|
45 |
|
46 |
|
47 |
if submit_button:
|