Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ if api_key:
|
|
80 |
database_info = []
|
81 |
for item in data:
|
82 |
image_url = item['์ด๋ฏธ์ง ๋งํฌ'][0]
|
83 |
-
image_path = f"temp_{item['
|
84 |
response = requests.get(image_url)
|
85 |
with open(image_path, 'wb') as f:
|
86 |
f.write(response.content)
|
@@ -90,7 +90,7 @@ if api_key:
|
|
90 |
|
91 |
database_embeddings.append(embedding)
|
92 |
database_info.append({
|
93 |
-
'id': item['
|
94 |
'category': item['์นดํ
๊ณ ๋ฆฌ'],
|
95 |
'brand': item['๋ธ๋๋๋ช
'],
|
96 |
'name': item['์ ํ๋ช
'],
|
|
|
80 |
database_info = []
|
81 |
for item in data:
|
82 |
image_url = item['์ด๋ฏธ์ง ๋งํฌ'][0]
|
83 |
+
image_path = f"temp_{item['\ufeff์ํ ID']}.jpg"
|
84 |
response = requests.get(image_url)
|
85 |
with open(image_path, 'wb') as f:
|
86 |
f.write(response.content)
|
|
|
90 |
|
91 |
database_embeddings.append(embedding)
|
92 |
database_info.append({
|
93 |
+
'id': item['\ufeff์ํ ID'],
|
94 |
'category': item['์นดํ
๊ณ ๋ฆฌ'],
|
95 |
'brand': item['๋ธ๋๋๋ช
'],
|
96 |
'name': item['์ ํ๋ช
'],
|