kodamkarthik281 commited on
Commit
75e8883
·
verified ·
1 Parent(s): 1d56cce

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +5 -0
streamlit_app.py CHANGED
@@ -63,6 +63,11 @@ if "history" not in st.session_state:
63
  if st.button("Summarize"):
64
  if user_input.strip():
65
  with st.spinner("Generating summaries..."):
 
 
 
 
 
66
  abs_summary = generate_summary(user_input, model, tokenizer)
67
  ext_summary = extractive_summary(user_input)
68
 
 
63
  if st.button("Summarize"):
64
  if user_input.strip():
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)
72
  ext_summary = extractive_summary(user_input)
73