seawolf2357 commited on
Commit
6acb5fc
โ€ข
1 Parent(s): 46c1973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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=80)
106
- matched_case_summaries = process.extractBests(user_input, all_case_summaries, limit=3, score_cutoff=80)
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 = []