Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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": "
|
| 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": "
|
| 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-
|
| 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);
|