Spaces:
Sleeping
Sleeping
Update app.py
Browse files126 unmodified lines127128129130131132133134135136137138139140141142143144145146126 unmodified lines# URL 입력 받기if "q" in st.query_params:value = st.query_params['q']url = st.text_input("url을 입력하세요",value=st.query_params['q'])title, content, comments = get_comments(url)# 결과 표시st.subheader("기사 제목")st.write(title)st.subheader("본문 내용")st.write(content)st.subheader("댓글")for comment in comments:if evaluation_predict(comment) == 1:st.write(comment)else:url = st.text_input("url을 입력하세요")126 unmodified lines127128129130131132133134135136137138139140141142143144145146147148149126 unmodified lines# URL 입력 받기if "q" in st.query_params:value = st.query_params['q']if value:url = st.text_input("url을 입력하세요",value=st.query_params['q'])title, content, comments = get_comments(url)# 결과 표시st.subheader("기사 제목")st.write(title)st.subheader("본문 내용")st.write(content)st.subheader("댓글")for comment in comments:if evaluation_predict(comment) == 1:st.write(comment)else:url = st.text_input("url을 입력하세요")else:url = st.text_input("url을 입력하세요")
app.py+17-14