Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,8 +63,12 @@ def movie_evaluation_predict(sentence):
|
|
63 |
st.write("(๊ธ์ ํ๋ฅ : %.2f) ๊ธ์ ์ ์ธ ์ํ ํ๊ฐ์
๋๋ค." % predict_value)
|
64 |
|
65 |
def scrape_content(url):
|
|
|
|
|
|
|
|
|
66 |
# ์น ํ์ด์ง ์์ฒญ
|
67 |
-
response = requests.get(url)
|
68 |
soup = BeautifulSoup(response.content, 'html.parser')
|
69 |
|
70 |
# ๋ณธ๋ฌธ ์ถ์ถ
|
|
|
63 |
st.write("(๊ธ์ ํ๋ฅ : %.2f) ๊ธ์ ์ ์ธ ์ํ ํ๊ฐ์
๋๋ค." % predict_value)
|
64 |
|
65 |
def scrape_content(url):
|
66 |
+
|
67 |
+
headers = {
|
68 |
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36"
|
69 |
+
}
|
70 |
# ์น ํ์ด์ง ์์ฒญ
|
71 |
+
response = requests.get(url, headers=headers)
|
72 |
soup = BeautifulSoup(response.content, 'html.parser')
|
73 |
|
74 |
# ๋ณธ๋ฌธ ์ถ์ถ
|