changed ui, added streamlit
Browse files50 unmodified lines5152535455565799 unmodified lines15715815916016116216350 unmodified linesdef get_hindex(headlines):global urlsbox = st.selectbox(f"\n\n Pick a headline here from NPR and get a summary below",options=headlines)hindex = headlines.index(sbox)paras, pstart = get_story(hindex)99 unmodified linessummary = summarize_chunks(chunks)chunks = chunkify(paras, pstart)if device == -1:st.write("\nbe patient, ino GPU, this might take some time on the CPU\n")summary = summarize_chunks(chunks)with st.container(border=True):st.subheader("Summary")50 unmodified lines5152535455565799 unmodified lines15715815916016116216350 unmodified linesdef get_hindex(headlines):global urlsbox = st.selectbox(f"Pick a headline here from NPR and get a summary below",options=headlines)hindex = headlines.index(sbox)paras, pstart = get_story(hindex)99 unmodified linessummary = summarize_chunks(chunks)chunks = chunkify(paras, pstart)if device == -1:st.write("\nbe patient, no GPU, this might take some time on the CPU\n")summary = summarize_chunks(chunks)with st.container(border=True):st.subheader("Summary")
app.py+2-2