Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|