benjamin5607 commited on
Commit
0d22a7b
ยท
verified ยท
1 Parent(s): 119c284

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -114,9 +114,9 @@ PLACE_DB = {
114
  {"name": "Akkurat", "category": "Bar", "label": "๐Ÿบ Beer", "lat": 59.319, "lon": 18.070, "desc_ko": "์ „ ์„ธ๊ณ„ ๋งฅ์ฃผ ๋•ํ›„๋“ค์˜ ์„ฑ์ง€", "desc_en": "World-famous beer bar."}
115
  ],
116
  "Norway ๐Ÿ‡ณ๐Ÿ‡ด": [
117
- {"name": "Lรธiten Brรฆnderi", "category": "Traditional", "label": "๐Ÿฅ” Aquavit", "lat": 60.821, "lon": 11.343, "desc_ko": "๋…ธ๋ฅด์›จ์ด ์•„์ฟ ์•„๋น„ํŠธ ์—ญ์‚ฌ๊ด€", "desc_en": "Aquavit history."},
118
- {"name": "Arcus (Linie)", "category": "Traditional", "label": "๐Ÿšข Aquavit", "lat": 59.970, "lon": 10.930, "desc_ko": "์ ๋„๋ฅผ ๋‘ ๋ฒˆ ํ†ต๊ณผํ•œ ๋ฆฌ๋‹ˆ์—", "desc_en": "Equator aged Aquavit."},
119
  {"name": "Himkok", "category": "Bar", "label": "๐Ÿธ Distillery", "lat": 59.916, "lon": 10.750, "desc_ko": "์ž์ฒด ์ฆ๋ฅ˜ ์•„์ฟ ์•„๋น„ํŠธ ๋ฐ”", "desc_en": "In-house distillery bar."},
 
 
120
  {"name": "Aurora Spirit", "category": "Whiskey", "label": "๐Ÿญ Arctic", "lat": 69.619, "lon": 20.272, "desc_ko": "์„ธ๊ณ„ ์ตœ๋ถ๋‹จ ์ฆ๋ฅ˜์†Œ", "desc_en": "Northernmost distillery."}
121
  ],
122
  "Finland ๐Ÿ‡ซ๐Ÿ‡ฎ": [
@@ -156,7 +156,7 @@ PLACE_DB = {
156
  ],
157
  "Spain ๐Ÿ‡ช๐Ÿ‡ธ": [
158
  {"name": "Marquรฉs de Riscal", "category": "Wine", "label": "๐Ÿท Rioja", "lat": 42.511, "lon": -2.622, "desc_ko": "๋ฆฌ์˜คํ•˜ ๋žœ๋“œ๋งˆํฌ", "desc_en": "Architectural wonder."},
159
- {"name": "Estrella Damm", "category": "Beer", "label": "๐Ÿบ Barcelona", "lat": 41.319, "lon": 2.093, "desc_ko": "๋ฐ”๋ฅด์…€๋กœ๋‚˜ ๋งฅ์ฃผ", "desc_en": "The beer of Barcelona."}
160
  ],
161
  "Czech Republic ๐Ÿ‡จ๐Ÿ‡ฟ": [
162
  {"name": "Pilsner Urquell", "category": "Beer", "label": "๐Ÿบ Pilsner", "lat": 49.747, "lon": 13.388, "desc_ko": "๋ผ๊ฑฐ์˜ ์›์กฐ", "desc_en": "Birthplace of Pilsner."}
@@ -190,7 +190,7 @@ PLACE_DB = {
190
  ],
191
  "Peru ๐Ÿ‡ต๐Ÿ‡ช": [
192
  {"name": "Hacienda La Caravedo", "category": "Spirits", "label": "๐Ÿ‡ Pisco", "lat": -14.005, "lon": -75.762, "desc_ko": "๋‚จ๋ฏธ ์ตœ๊ณ  ํ”ผ์Šค์ฝ” ์–‘์กฐ์žฅ", "desc_en": "Oldest distillery in Americas."},
193
- {"name": "La Chicherรญa", "category": "Traditional", "label": "๐ŸŒฝ Chicha", "lat": -13.516, "lon": -71.978, "desc_ko": "์ž‰์นด ์˜ฅ์ˆ˜์ˆ˜ ๋ฐœํšจ์ฃผ", "desc_en": "Inca corn beer."}
194
  ],
195
  "Argentina ๐Ÿ‡ฆ๐Ÿ‡ท": [
196
  {"name": "Catena Zapata", "category": "Wine", "label": "๐Ÿท Malbec", "lat": -33.155, "lon": -68.929, "desc_ko": "๋ฉ˜๋„์‚ฌ ์™€์ธ ์ƒ์ง•", "desc_en": "Icon of Argentine Malbec."}
@@ -297,11 +297,11 @@ html_code = f"""
297
 
298
  <div class="type-filter-container">
299
  <div class="type-btn selected" id="filter-all" onclick="filterType('All', this)">๐ŸŒ All</div>
300
- <div class="type-btn" id="filter-traditional" onclick="filterType('Traditional', this)">๐Ÿบ Traditional</div>
301
  <div class="type-btn" id="filter-whiskey" onclick="filterType('Whiskey', this)">๐Ÿฅƒ Whiskey</div>
302
  <div class="type-btn" id="filter-spirits" onclick="filterType('Spirits', this)">๐Ÿธ Spirits</div>
303
  <div class="type-btn" id="filter-beer" onclick="filterType('Beer', this)">๐Ÿบ Beer</div>
304
  <div class="type-btn" id="filter-wine" onclick="filterType('Wine', this)">๐Ÿท Wine</div>
 
305
  <div class="type-btn" id="filter-bar" onclick="filterType('Bar', this)">๐Ÿน Bar</div>
306
  </div>
307
 
@@ -330,7 +330,7 @@ html_code = f"""
330
 
331
  <script>
332
  const HF_TOKEN = "{token}";
333
- const MODEL_ID = "Qwen/Qwen2.5-72B-Instruct"; // ๋ชจ๋ธ ์—…๊ทธ๋ ˆ์ด๋“œ
334
 
335
  const PLACE_DB = {db_json};
336
 
@@ -384,6 +384,7 @@ html_code = f"""
384
  // Default select
385
  const keys = Object.keys(PLACE_DB).sort();
386
  if (keys.length > 0) {{
 
387
  const defaultKey = keys.find(k => k.includes("Korea")) || keys[0];
388
  document.getElementById('country-select').value = defaultKey;
389
  selectCountry(defaultKey);
 
114
  {"name": "Akkurat", "category": "Bar", "label": "๐Ÿบ Beer", "lat": 59.319, "lon": 18.070, "desc_ko": "์ „ ์„ธ๊ณ„ ๋งฅ์ฃผ ๋•ํ›„๋“ค์˜ ์„ฑ์ง€", "desc_en": "World-famous beer bar."}
115
  ],
116
  "Norway ๐Ÿ‡ณ๐Ÿ‡ด": [
 
 
117
  {"name": "Himkok", "category": "Bar", "label": "๐Ÿธ Distillery", "lat": 59.916, "lon": 10.750, "desc_ko": "์ž์ฒด ์ฆ๋ฅ˜ ์•„์ฟ ์•„๋น„ํŠธ ๋ฐ”", "desc_en": "In-house distillery bar."},
118
+ {"name": "Lรธiten Brรฆnderi", "category": "Traditional", "label": "๐Ÿฅ” Aquavit", "lat": 60.821, "lon": 11.343, "desc_ko": "๋…ธ๋ฅด์›จ์ด ์•„์ฟ ์•„๋น„ํŠธ ์—ญ์‚ฌ๊ด€", "desc_en": "Aquavit history."},
119
+ {"name": "Arcus (Linie)", "category": "Traditional", "label": "๐Ÿšข Aquavit", "lat": 59.970, "lon": 10.930, "desc_ko": "์ ๋„๋ฅผ ํ†ต๊ณผํ•ด ์ˆ™์„ฑํ•œ ์•„์ฟ ์•„๋น„ํŠธ", "desc_en": "Equator aged Aquavit."},
120
  {"name": "Aurora Spirit", "category": "Whiskey", "label": "๐Ÿญ Arctic", "lat": 69.619, "lon": 20.272, "desc_ko": "์„ธ๊ณ„ ์ตœ๋ถ๋‹จ ์ฆ๋ฅ˜์†Œ", "desc_en": "Northernmost distillery."}
121
  ],
122
  "Finland ๐Ÿ‡ซ๐Ÿ‡ฎ": [
 
156
  ],
157
  "Spain ๐Ÿ‡ช๐Ÿ‡ธ": [
158
  {"name": "Marquรฉs de Riscal", "category": "Wine", "label": "๐Ÿท Rioja", "lat": 42.511, "lon": -2.622, "desc_ko": "๋ฆฌ์˜คํ•˜ ๋žœ๋“œ๋งˆํฌ", "desc_en": "Architectural wonder."},
159
+ {"name": "Tio Pepe", "category": "Wine", "label": "๐Ÿท Sherry", "lat": 36.681, "lon": -6.141, "desc_ko": "์…ฐ๋ฆฌ์˜ ๋Œ€๋ช…์‚ฌ", "desc_en": "Famous Sherry winery."}
160
  ],
161
  "Czech Republic ๐Ÿ‡จ๐Ÿ‡ฟ": [
162
  {"name": "Pilsner Urquell", "category": "Beer", "label": "๐Ÿบ Pilsner", "lat": 49.747, "lon": 13.388, "desc_ko": "๋ผ๊ฑฐ์˜ ์›์กฐ", "desc_en": "Birthplace of Pilsner."}
 
190
  ],
191
  "Peru ๐Ÿ‡ต๐Ÿ‡ช": [
192
  {"name": "Hacienda La Caravedo", "category": "Spirits", "label": "๐Ÿ‡ Pisco", "lat": -14.005, "lon": -75.762, "desc_ko": "๋‚จ๋ฏธ ์ตœ๊ณ  ํ”ผ์Šค์ฝ” ์–‘์กฐ์žฅ", "desc_en": "Oldest distillery in Americas."},
193
+ {"name": "Museo del Pisco", "category": "Bar", "label": "๐Ÿธ Pisco Sour", "lat": -13.516, "lon": -71.978, "desc_ko": "ํ”ผ์Šค์ฝ” ๋ฐ•๋ฌผ๊ด€ ๋ฐ ๋ฐ”", "desc_en": "Pisco tasting."}
194
  ],
195
  "Argentina ๐Ÿ‡ฆ๐Ÿ‡ท": [
196
  {"name": "Catena Zapata", "category": "Wine", "label": "๐Ÿท Malbec", "lat": -33.155, "lon": -68.929, "desc_ko": "๋ฉ˜๋„์‚ฌ ์™€์ธ ์ƒ์ง•", "desc_en": "Icon of Argentine Malbec."}
 
297
 
298
  <div class="type-filter-container">
299
  <div class="type-btn selected" id="filter-all" onclick="filterType('All', this)">๐ŸŒ All</div>
 
300
  <div class="type-btn" id="filter-whiskey" onclick="filterType('Whiskey', this)">๐Ÿฅƒ Whiskey</div>
301
  <div class="type-btn" id="filter-spirits" onclick="filterType('Spirits', this)">๐Ÿธ Spirits</div>
302
  <div class="type-btn" id="filter-beer" onclick="filterType('Beer', this)">๐Ÿบ Beer</div>
303
  <div class="type-btn" id="filter-wine" onclick="filterType('Wine', this)">๐Ÿท Wine</div>
304
+ <div class="type-btn" id="filter-traditional" onclick="filterType('Traditional', this)">๐Ÿบ Traditional</div>
305
  <div class="type-btn" id="filter-bar" onclick="filterType('Bar', this)">๐Ÿน Bar</div>
306
  </div>
307
 
 
330
 
331
  <script>
332
  const HF_TOKEN = "{token}";
333
+ const MODEL_ID = "Qwen/Qwen2.5-32B-Instruct"; // ๋ชจ๋ธ ์—…๊ทธ๋ ˆ์ด๋“œ
334
 
335
  const PLACE_DB = {db_json};
336
 
 
384
  // Default select
385
  const keys = Object.keys(PLACE_DB).sort();
386
  if (keys.length > 0) {{
387
+ // Default to Korea
388
  const defaultKey = keys.find(k => k.includes("Korea")) || keys[0];
389
  document.getElementById('country-select').value = defaultKey;
390
  selectCountry(defaultKey);