jackkuo commited on
Commit
e3f3eb4
·
verified ·
1 Parent(s): b05950c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -506,6 +506,7 @@ if query or search_button:
506
  st.markdown(
507
  f"**[Full Text Read]({doi_link})** 🔗", unsafe_allow_html=True
508
  )
 
509
  with st.spinner("Under statistics..."):
510
  plot_df = pd.DataFrame(plot_data)
511
 
@@ -550,6 +551,7 @@ if query or search_button:
550
  # Show the pie chart in the Streamlit app
551
  st.plotly_chart(fig, use_container_width=True)
552
 
 
553
  with st.spinner("LLM is summarizing..."):
554
  prompt = st.text_area("Enter your summary prompt", value=LLM_prompt)
555
  summary_button = st.button("AI summary")
 
506
  st.markdown(
507
  f"**[Full Text Read]({doi_link})** 🔗", unsafe_allow_html=True
508
  )
509
+ if plot_data:
510
  with st.spinner("Under statistics..."):
511
  plot_df = pd.DataFrame(plot_data)
512
 
 
551
  # Show the pie chart in the Streamlit app
552
  st.plotly_chart(fig, use_container_width=True)
553
 
554
+ if abstracts:
555
  with st.spinner("LLM is summarizing..."):
556
  prompt = st.text_area("Enter your summary prompt", value=LLM_prompt)
557
  summary_button = st.button("AI summary")