ginipick commited on
Commit
180d48a
ยท
verified ยท
1 Parent(s): 3594fca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -5
app.py CHANGED
@@ -1328,27 +1328,55 @@ def compute_relevance_scores(prompt: str, categories: list[Category]) -> dict:
1328
  if main_purpose:
1329
  purpose_category_weights = {
1330
  'cost_reduction': {
 
1331
  '๊ตฌ์กฐ์  ๋ณ€ํ™”': 1.5, 'ํ™”ํ•™์  ๋ณ€ํ™”': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.5,
1332
- 'Structural Change': 1.5, 'Chemical Change': 1.3, 'Business Ideas': 1.5
 
 
 
 
1333
  },
1334
  'innovation': {
 
1335
  '์„ผ์„œ ๊ธฐ๋Šฅ': 1.5, 'ํ‘œ๋ฉด ๋ฐ ์™ธ๊ด€ ๋ณ€ํ™”': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.5,
1336
- 'Sensor Functions': 1.5, 'Surface and Appearance Change': 1.3, 'Business Ideas': 1.5
 
 
 
 
1337
  },
1338
  'risk_management': {
 
1339
  'ํ™˜๊ฒฝ ์ƒํ˜ธ์ž‘์šฉ': 1.5, '์‹œ๊ฐ„ ๊ด€๋ จ ๋ณ€ํ™”': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.4,
1340
- 'Environmental Interaction': 1.5, 'Time-Related Change': 1.3, 'Business Ideas': 1.4
 
 
 
 
1341
  },
1342
  'growth': {
 
1343
  'ํฌ๊ธฐ์™€ ํ˜•ํƒœ ๋ณ€ํ™”': 1.4, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.6, '๊ตฌ์กฐ์  ๋ณ€ํ™”': 1.3,
1344
- 'Size and Shape Change': 1.4, 'Business Ideas': 1.6, 'Structural Change': 1.3
 
 
 
 
1345
  },
1346
  'customer': {
 
1347
  'ํ‘œ๋ฉด ๋ฐ ์™ธ๊ด€ ๋ณ€ํ™”': 1.5, '์„ผ์„œ ๊ธฐ๋Šฅ': 1.4, '๋น›๊ณผ ์‹œ๊ฐ ํšจ๊ณผ': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.4,
1348
  'Surface and Appearance Change': 1.5, 'Sensor Functions': 1.4,
1349
- 'Light and Visual Effects': 1.3, 'Business Ideas': 1.4
 
 
 
 
 
1350
  }
1351
  }
 
 
1352
  if category.name_ko in purpose_category_weights.get(main_purpose, {}):
1353
  cat_score *= purpose_category_weights[main_purpose][category.name_ko]
1354
  elif category.name_en in purpose_category_weights.get(main_purpose, {}):
 
1328
  if main_purpose:
1329
  purpose_category_weights = {
1330
  'cost_reduction': {
1331
+ # ๊ธฐ์กด ํ•ญ๋ชฉ
1332
  '๊ตฌ์กฐ์  ๋ณ€ํ™”': 1.5, 'ํ™”ํ•™์  ๋ณ€ํ™”': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.5,
1333
+ 'Structural Change': 1.5, 'Chemical Change': 1.3, 'Business Ideas': 1.5,
1334
+ # ์ถ”๊ฐ€ ํ•ญ๋ชฉ
1335
+ '์—๋„ˆ์ง€ ๋ณ€ํ™˜ ๋ฐ ๊ด€๋ฆฌ': 1.6, '๋ฐ์ดํ„ฐ ๋ฐ ์ •๋ณด ๋ณ€ํ™˜': 1.4, '์ง€์†๊ฐ€๋Šฅ์„ฑ ๋ฐ ํ™˜๊ฒฝ ์˜ํ–ฅ': 1.3,
1336
+ 'Energy Conversion and Management': 1.6, 'Data and Information Transformation': 1.4,
1337
+ 'Sustainability and Environmental Impact': 1.3
1338
  },
1339
  'innovation': {
1340
+ # ๊ธฐ์กด ํ•ญ๋ชฉ
1341
  '์„ผ์„œ ๊ธฐ๋Šฅ': 1.5, 'ํ‘œ๋ฉด ๋ฐ ์™ธ๊ด€ ๋ณ€ํ™”': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.5,
1342
+ 'Sensor Functions': 1.5, 'Surface and Appearance Change': 1.3, 'Business Ideas': 1.5,
1343
+ # ์ถ”๊ฐ€ ํ•ญ๋ชฉ
1344
+ '์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ๋ฐ ์ƒํ˜ธ์ž‘์šฉ': 1.6, '๋ฐ์ดํ„ฐ ๋ฐ ์ •๋ณด ๋ณ€ํ™˜': 1.4, '์ธ์ง€ ๋ฐ ์‹ฌ๋ฆฌ์  ๋ณ€ํ™”': 1.3,
1345
+ 'User Interface and Interaction': 1.6, 'Data and Information Transformation': 1.4,
1346
+ 'Cognitive and Psychological Changes': 1.3
1347
  },
1348
  'risk_management': {
1349
+ # ๊ธฐ์กด ํ•ญ๋ชฉ
1350
  'ํ™˜๊ฒฝ ์ƒํ˜ธ์ž‘์šฉ': 1.5, '์‹œ๊ฐ„ ๊ด€๋ จ ๋ณ€ํ™”': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.4,
1351
+ 'Environmental Interaction': 1.5, 'Time-Related Change': 1.3, 'Business Ideas': 1.4,
1352
+ # ์ถ”๊ฐ€ ํ•ญ๋ชฉ
1353
+ '๋ณด์•ˆ ๋ฐ ํ”„๋ผ์ด๋ฒ„์‹œ': 1.7, '์ง€์†๊ฐ€๋Šฅ์„ฑ ๋ฐ ํ™˜๊ฒฝ ์˜ํ–ฅ': 1.5, '๋ฐ์ดํ„ฐ ๋ฐ ์ •๋ณด ๋ณ€ํ™˜': 1.4,
1354
+ 'Security and Privacy': 1.7, 'Sustainability and Environmental Impact': 1.5,
1355
+ 'Data and Information Transformation': 1.4
1356
  },
1357
  'growth': {
1358
+ # ๊ธฐ์กด ํ•ญ๋ชฉ
1359
  'ํฌ๊ธฐ์™€ ํ˜•ํƒœ ๋ณ€ํ™”': 1.4, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.6, '๊ตฌ์กฐ์  ๋ณ€ํ™”': 1.3,
1360
+ 'Size and Shape Change': 1.4, 'Business Ideas': 1.6, 'Structural Change': 1.3,
1361
+ # ์ถ”๊ฐ€ ํ•ญ๋ชฉ
1362
+ '์‚ฌํšŒ์  ์ƒํ˜ธ์ž‘์šฉ ๋ฐ ํ˜‘์—…': 1.5, '๋ฐ์ดํ„ฐ ๋ฐ ์ •๋ณด ๋ณ€ํ™˜': 1.4, '์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ๋ฐ ์ƒํ˜ธ์ž‘์šฉ': 1.3,
1363
+ 'Social Interaction and Collaboration': 1.5, 'Data and Information Transformation': 1.4,
1364
+ 'User Interface and Interaction': 1.3
1365
  },
1366
  'customer': {
1367
+ # ๊ธฐ์กด ํ•ญ๋ชฉ
1368
  'ํ‘œ๋ฉด ๋ฐ ์™ธ๊ด€ ๋ณ€ํ™”': 1.5, '์„ผ์„œ ๊ธฐ๋Šฅ': 1.4, '๋น›๊ณผ ์‹œ๊ฐ ํšจ๊ณผ': 1.3, '๋น„์ฆˆ๋‹ˆ์Šค ์•„์ด๋””์–ด': 1.4,
1369
  'Surface and Appearance Change': 1.5, 'Sensor Functions': 1.4,
1370
+ 'Light and Visual Effects': 1.3, 'Business Ideas': 1.4,
1371
+ # ์ถ”๊ฐ€ ํ•ญ๋ชฉ
1372
+ '์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ๋ฐ ์ƒํ˜ธ์ž‘์šฉ': 1.7, '๋ฏธํ•™ ๋ฐ ๊ฐ์„ฑ ๊ฒฝํ—˜': 1.6, '์ธ์ง€ ๋ฐ ์‹ฌ๋ฆฌ์  ๋ณ€ํ™”': 1.5,
1373
+ '์‚ฌํšŒ์  ์ƒํ˜ธ์ž‘์šฉ ๋ฐ ํ˜‘์—…': 1.4,
1374
+ 'User Interface and Interaction': 1.7, 'Aesthetics and Emotional Experience': 1.6,
1375
+ 'Cognitive and Psychological Changes': 1.5, 'Social Interaction and Collaboration': 1.4
1376
  }
1377
  }
1378
+
1379
+
1380
  if category.name_ko in purpose_category_weights.get(main_purpose, {}):
1381
  cat_score *= purpose_category_weights[main_purpose][category.name_ko]
1382
  elif category.name_en in purpose_category_weights.get(main_purpose, {}):