Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +1 -1
streamlit_app.py
CHANGED
|
@@ -65,7 +65,7 @@ if st.button("Summarize"):
|
|
| 65 |
with st.spinner("Generating summaries..."):
|
| 66 |
|
| 67 |
st.markdown("**Note :** This app may take 2–3 minutes to generate a summary after clicking the button.", unsafe_allow_html=True)
|
| 68 |
-
st.markdown("""**Why is it slow? :**The model is a fine-tuned Transformer (T5) loaded from Hugging Face. Due to limited compute resources on Hugging
|
| 69 |
Face Spaces (CPU-only and shared infrastructure), initial inference can take some time. Please be patient.""", unsafe_allow_html=True)
|
| 70 |
|
| 71 |
abs_summary = generate_summary(user_input, model, tokenizer)
|
|
|
|
| 65 |
with st.spinner("Generating summaries..."):
|
| 66 |
|
| 67 |
st.markdown("**Note :** This app may take 2–3 minutes to generate a summary after clicking the button.", unsafe_allow_html=True)
|
| 68 |
+
st.markdown("""**Why is it slow? :** The model is a fine-tuned Transformer (T5) loaded from Hugging Face. Due to limited compute resources on Hugging
|
| 69 |
Face Spaces (CPU-only and shared infrastructure), initial inference can take some time. Please be patient.""", unsafe_allow_html=True)
|
| 70 |
|
| 71 |
abs_summary = generate_summary(user_input, model, tokenizer)
|