seawolf2357 commited on
Commit
c0f1be6
โ€ข
1 Parent(s): 5f153c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def load_optimized_dataset(data_files):
29
  data_frames = [pd.read_csv(file) for file in data_files]
30
  full_data = pd.concat(data_frames, ignore_index=True)
31
  # ์‚ฌ๊ฑด๋ช…์„ ํ‚ค๋กœ ํ•˜๊ณ  ์‚ฌ๊ฑด๋ฒˆํ˜ธ์™€ ์ „๋ฌธ์„ ์ €์žฅํ•˜๋Š” ๋”•์…”๋„ˆ๋ฆฌ ์ƒ์„ฑ
32
- name_to_number = full_data.groupby('ํŒ๊ฒฐ์š”์ง€')['์‚ฌ๊ฑด๋ฒˆํ˜ธ'].apply(list).to_dict()
33
  number_to_fulltext = full_data.set_index('์‚ฌ๊ฑด๋ฒˆํ˜ธ')['์ „๋ฌธ'].to_dict()
34
  return name_to_number, number_to_fulltext
35
 
 
29
  data_frames = [pd.read_csv(file) for file in data_files]
30
  full_data = pd.concat(data_frames, ignore_index=True)
31
  # ์‚ฌ๊ฑด๋ช…์„ ํ‚ค๋กœ ํ•˜๊ณ  ์‚ฌ๊ฑด๋ฒˆํ˜ธ์™€ ์ „๋ฌธ์„ ์ €์žฅํ•˜๋Š” ๋”•์…”๋„ˆ๋ฆฌ ์ƒ์„ฑ
32
+ name_to_number = full_data.groupby('ํŒ์‹œ์‚ฌํ•ญ')['์‚ฌ๊ฑด๋ฒˆํ˜ธ'].apply(list).to_dict()
33
  number_to_fulltext = full_data.set_index('์‚ฌ๊ฑด๋ฒˆํ˜ธ')['์ „๋ฌธ'].to_dict()
34
  return name_to_number, number_to_fulltext
35