Spaces:
Running
Running
rogerxavier
commited on
Commit
•
a65c684
1
Parent(s):
01a9cbc
Update app.py
Browse files
app.py
CHANGED
@@ -180,9 +180,9 @@ def image_to_wd14_tags(image: Image.Image, model_name: str, threshold: float,
|
|
180 |
return ratings, output_text, filtered_tags
|
181 |
|
182 |
|
183 |
-
#获取图片调用image_to_wd14_tags函数获取返回
|
184 |
-
@app.post("/getOriginalMangaList")
|
185 |
-
def getOriginalMangaList(image: UploadFile = File(...))
|
186 |
|
187 |
img = image.file.read()
|
188 |
image_data = Image.open(io.BytesIO(img)).convert("L").convert("RGB")
|
|
|
180 |
return ratings, output_text, filtered_tags
|
181 |
|
182 |
|
183 |
+
#获取图片调用image_to_wd14_tags函数获取返回 ->"ratings, output_text, filtered_tags"
|
184 |
+
@app.post("/getOriginalMangaList")
|
185 |
+
def getOriginalMangaList(image: UploadFile = File(...)):
|
186 |
|
187 |
img = image.file.read()
|
188 |
image_data = Image.open(io.BytesIO(img)).convert("L").convert("RGB")
|