Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,6 +130,23 @@ def main():
|
|
| 130 |
if value:
|
| 131 |
url = st.text_input("url์ ์
๋ ฅํ์ธ์",value=st.query_params['q'])
|
| 132 |
title, content, comments = get_comments(url)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
# ๊ฒฐ๊ณผ ํ์
|
| 135 |
st.subheader("๊ธฐ์ฌ ์ ๋ชฉ")
|
|
@@ -142,27 +159,42 @@ def main():
|
|
| 142 |
for comment in comments:
|
| 143 |
if evaluation_predict(comment) == 1:
|
| 144 |
st.write(comment)
|
|
|
|
| 145 |
else:
|
| 146 |
url = st.text_input("url์ ์
๋ ฅํ์ธ์")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
else:
|
| 148 |
url = st.text_input("url์ ์
๋ ฅํ์ธ์")
|
| 149 |
-
|
| 150 |
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
return 0
|
| 167 |
|
| 168 |
if __name__ == "__main__":
|
|
|
|
| 130 |
if value:
|
| 131 |
url = st.text_input("url์ ์
๋ ฅํ์ธ์",value=st.query_params['q'])
|
| 132 |
title, content, comments = get_comments(url)
|
| 133 |
+
|
| 134 |
+
if st.button("์คํฌ๋ฉ ์์"):
|
| 135 |
+
if url:
|
| 136 |
+
title, content, comments = get_comments(url)
|
| 137 |
+
|
| 138 |
+
# ๊ฒฐ๊ณผ ํ์
|
| 139 |
+
st.subheader("๊ธฐ์ฌ ์ ๋ชฉ")
|
| 140 |
+
st.write(title)
|
| 141 |
+
|
| 142 |
+
st.subheader("๋ณธ๋ฌธ ๋ด์ฉ")
|
| 143 |
+
st.write(content)
|
| 144 |
+
|
| 145 |
+
st.subheader("๋๊ธ")
|
| 146 |
+
for comment in comments:
|
| 147 |
+
if evaluation_predict(comment) == 1:
|
| 148 |
+
st.write(comment)
|
| 149 |
+
|
| 150 |
|
| 151 |
# ๊ฒฐ๊ณผ ํ์
|
| 152 |
st.subheader("๊ธฐ์ฌ ์ ๋ชฉ")
|
|
|
|
| 159 |
for comment in comments:
|
| 160 |
if evaluation_predict(comment) == 1:
|
| 161 |
st.write(comment)
|
| 162 |
+
|
| 163 |
else:
|
| 164 |
url = st.text_input("url์ ์
๋ ฅํ์ธ์")
|
| 165 |
+
if st.button("์คํฌ๋ฉ ์์"):
|
| 166 |
+
if url:
|
| 167 |
+
title, content, comments = get_comments(url)
|
| 168 |
+
|
| 169 |
+
# ๊ฒฐ๊ณผ ํ์
|
| 170 |
+
st.subheader("๊ธฐ์ฌ ์ ๋ชฉ")
|
| 171 |
+
st.write(title)
|
| 172 |
+
|
| 173 |
+
st.subheader("๋ณธ๋ฌธ ๋ด์ฉ")
|
| 174 |
+
st.write(content)
|
| 175 |
+
|
| 176 |
+
st.subheader("๋๊ธ")
|
| 177 |
+
for comment in comments:
|
| 178 |
+
if evaluation_predict(comment) == 1:
|
| 179 |
+
st.write(comment)
|
| 180 |
else:
|
| 181 |
url = st.text_input("url์ ์
๋ ฅํ์ธ์")
|
|
|
|
| 182 |
|
| 183 |
+
if st.button("์คํฌ๋ฉ ์์"):
|
| 184 |
+
if url:
|
| 185 |
+
title, content, comments = get_comments(url)
|
| 186 |
+
|
| 187 |
+
# ๊ฒฐ๊ณผ ํ์
|
| 188 |
+
st.subheader("๊ธฐ์ฌ ์ ๋ชฉ")
|
| 189 |
+
st.write(title)
|
| 190 |
+
|
| 191 |
+
st.subheader("๋ณธ๋ฌธ ๋ด์ฉ")
|
| 192 |
+
st.write(content)
|
| 193 |
+
|
| 194 |
+
st.subheader("๋๊ธ")
|
| 195 |
+
for comment in comments:
|
| 196 |
+
if evaluation_predict(comment) == 1:
|
| 197 |
+
st.write(comment)
|
| 198 |
return 0
|
| 199 |
|
| 200 |
if __name__ == "__main__":
|