Skip to content

Commit

Permalink
fix: Model updated | 여러개 답안에서 1번째 이상 위치에 답 있는 경우 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yujin37 committed Nov 1, 2023
1 parent bf1fdc3 commit 5ac60de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def check_distance(X, new_post_vec, contents):
if d < best_dist:
best_dist = d
best_i = i
result = [contents[i]]
result = [contents[0]]
elif d == best_dist:
result.append(contents[i])
result.append(contents[0])

return best_i, best_dist, result

Expand Down

0 comments on commit 5ac60de

Please sign in to comment.