Spaces:
Sleeping
Sleeping
seawolf2357
commited on
Commit
โข
6acb5fc
1
Parent(s):
46c1973
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from datasets import load_dataset
|
|
8 |
import pandas as pd
|
9 |
from fuzzywuzzy import process
|
10 |
|
|
|
11 |
# ํ์ฌ ์์
๋๋ ํ ๋ฆฌ ์ถ๋ ฅ
|
12 |
print("Current Working Directory:", os.getcwd())
|
13 |
|
@@ -101,9 +102,9 @@ async def generate_response(message):
|
|
101 |
user_input = message.content.strip()
|
102 |
user_mention = message.author.mention
|
103 |
|
104 |
-
# ์ ์ฌํ ์ฌ๊ฑด๋ช
๋ฐ
|
105 |
-
matched_case_names = process.extractBests(user_input, all_case_names, limit=3, score_cutoff=
|
106 |
-
matched_case_summaries = process.extractBests(user_input, all_case_summaries, limit=3, score_cutoff=
|
107 |
|
108 |
if matched_case_names:
|
109 |
case_numbers = []
|
|
|
8 |
import pandas as pd
|
9 |
from fuzzywuzzy import process
|
10 |
|
11 |
+
|
12 |
# ํ์ฌ ์์
๋๋ ํ ๋ฆฌ ์ถ๋ ฅ
|
13 |
print("Current Working Directory:", os.getcwd())
|
14 |
|
|
|
102 |
user_input = message.content.strip()
|
103 |
user_mention = message.author.mention
|
104 |
|
105 |
+
# ์ ์ฌํ ์ฌ๊ฑด๋ช
๋ฐ ํ์์ฌํญ ์ฐพ๊ธฐ
|
106 |
+
matched_case_names = process.extractBests(user_input, all_case_names, limit=3, score_cutoff=70) # score_cutoff ๊ฐ ์กฐ์
|
107 |
+
matched_case_summaries = process.extractBests(user_input, all_case_summaries, limit=3, score_cutoff=70)
|
108 |
|
109 |
if matched_case_names:
|
110 |
case_numbers = []
|