duwing commited on
Commit
6ad7f19
ยท
verified ยท
1 Parent(s): 818643e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -127,6 +127,24 @@ def main():
127
  url = st.text_input("url์„ ์ž…๋ ฅํ•˜์„ธ์š”",value=st.query_params['q'])
128
  else:
129
  url = st.text_input("url์„ ์ž…๋ ฅํ•˜์„ธ์š”")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  if st.button("์Šคํฌ๋žฉ ์‹œ์ž‘"):
131
  if url:
132
  title, content, comments = get_comments(url)
 
127
  url = st.text_input("url์„ ์ž…๋ ฅํ•˜์„ธ์š”",value=st.query_params['q'])
128
  else:
129
  url = st.text_input("url์„ ์ž…๋ ฅํ•˜์„ธ์š”")
130
+
131
+ if url:
132
+ title, content, comments = get_comments(url)
133
+
134
+
135
+ # ๊ฒฐ๊ณผ ํ‘œ์‹œ
136
+ st.subheader("๊ธฐ์‚ฌ ์ œ๋ชฉ")
137
+ st.write(title)
138
+
139
+ st.subheader("๋ณธ๋ฌธ ๋‚ด์šฉ")
140
+ st.write(content)
141
+
142
+ st.subheader("๋Œ“๊ธ€")
143
+ for comment in comments:
144
+ if evaluation_predict(comment) == 1:
145
+ st.write(comment)
146
+
147
+
148
  if st.button("์Šคํฌ๋žฉ ์‹œ์ž‘"):
149
  if url:
150
  title, content, comments = get_comments(url)