Spaces:
Runtime error
Runtime error
hy commited on
Commit ยท
ab47fb4
1
Parent(s): f0247e1
final
Browse files- aggro_model.py +4 -4
- main.py +2 -2
aggro_model.py
CHANGED
|
@@ -241,19 +241,19 @@ def get_aggro_score(title: str) -> dict:
|
|
| 241 |
|
| 242 |
# 5. ๋ฑ๊ธ ํ์
|
| 243 |
if final_score >= 80:
|
| 244 |
-
reason = f"๋งค์ฐ ๋์ ๐ด
|
| 245 |
recommendation = "์ ๋ฉด ์์ ๊ถ์ฅ"
|
| 246 |
|
| 247 |
elif final_score >= 60:
|
| 248 |
-
reason = f"๋์ ๐
|
| 249 |
recommendation = "๊ณผ์ฅ๋ ํํ ์์ ํ์"
|
| 250 |
|
| 251 |
elif final_score >= 40:
|
| 252 |
-
reason = f"๋ณดํต ๐ก
|
| 253 |
recommendation = "์ผ๋ถ ํํ ์ค๋ฆฝํ ๊ถ์ฅ"
|
| 254 |
|
| 255 |
else:
|
| 256 |
-
reason = f"๋ฎ์ ๐ข
|
| 257 |
recommendation = "์ ์ ํ ์ ๋ชฉ์
๋๋ค"
|
| 258 |
|
| 259 |
return {
|
|
|
|
| 241 |
|
| 242 |
# 5. ๋ฑ๊ธ ํ์
|
| 243 |
if final_score >= 80:
|
| 244 |
+
reason = f"๋งค์ฐ ๋์ ๐ด"
|
| 245 |
recommendation = "์ ๋ฉด ์์ ๊ถ์ฅ"
|
| 246 |
|
| 247 |
elif final_score >= 60:
|
| 248 |
+
reason = f"๋์ ๐ "
|
| 249 |
recommendation = "๊ณผ์ฅ๋ ํํ ์์ ํ์"
|
| 250 |
|
| 251 |
elif final_score >= 40:
|
| 252 |
+
reason = f"๋ณดํต ๐ก"
|
| 253 |
recommendation = "์ผ๋ถ ํํ ์ค๋ฆฝํ ๊ถ์ฅ"
|
| 254 |
|
| 255 |
else:
|
| 256 |
+
reason = f"๋ฎ์ ๐ข"
|
| 257 |
recommendation = "์ ์ ํ ์ ๋ชฉ์
๋๋ค"
|
| 258 |
|
| 259 |
return {
|
main.py
CHANGED
|
@@ -113,8 +113,8 @@ def analyze_article(request: ArticleRequest,db: Session = Depends(get_db)):
|
|
| 113 |
|
| 114 |
# ์ต์ข
์ํ๋ ๊ณ์ฐ
|
| 115 |
w_aggro = 0.2
|
| 116 |
-
w_mismatch = 0.
|
| 117 |
-
w_crossref = 0.
|
| 118 |
|
| 119 |
final_score = (real_aggro.score * w_aggro) + \
|
| 120 |
(real_mismatch.score * w_mismatch) + \
|
|
|
|
| 113 |
|
| 114 |
# ์ต์ข
์ํ๋ ๊ณ์ฐ
|
| 115 |
w_aggro = 0.2
|
| 116 |
+
w_mismatch = 0.5
|
| 117 |
+
w_crossref = 0.3
|
| 118 |
|
| 119 |
final_score = (real_aggro.score * w_aggro) + \
|
| 120 |
(real_mismatch.score * w_mismatch) + \
|