Spaces:
Sleeping
Sleeping
zhangfeng144
commited on
Commit
·
eb44dec
1
Parent(s):
416d77b
add stickers
Browse files- app/services.py +7 -1
app/services.py
CHANGED
@@ -146,7 +146,13 @@ class StickerService:
|
|
146 |
generate_temp_image(img_folder, image, image_filename)
|
147 |
if save_to_milvus:
|
148 |
db.store_sticker("", description, "", file_path, image_hash)
|
149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
if progress_callback:
|
151 |
results.append(f"成功导入: {image_filename}")
|
152 |
progress_callback(file, "Imported")
|
|
|
146 |
generate_temp_image(img_folder, image, image_filename)
|
147 |
if save_to_milvus:
|
148 |
db.store_sticker("", description, "", file_path, image_hash)
|
149 |
+
stickers.append({
|
150 |
+
"title": "",
|
151 |
+
"description": description,
|
152 |
+
"tags": "",
|
153 |
+
"file_path": file_path,
|
154 |
+
"image_hash": image_hash
|
155 |
+
})
|
156 |
if progress_callback:
|
157 |
results.append(f"成功导入: {image_filename}")
|
158 |
progress_callback(file, "Imported")
|