rogerxavier commited on
Commit
1ac8a5b
1 Parent(s): c19c510

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -181,7 +181,8 @@ def image_to_wd14_tags(image: Image.Image, model_name: str, threshold: float,
181
 
182
 
183
  #获取图片调用image_to_wd14_tags函数获取返回 ->"ratings, output_text, filtered_tags"
184
- @app.post("/getOriginalMangaList")
 
185
  def getOriginalMangaList(image: UploadFile = File(...)):
186
  print("收到请求")
187
 
 
181
 
182
 
183
  #获取图片调用image_to_wd14_tags函数获取返回 ->"ratings, output_text, filtered_tags"
184
+ #@app.post("/getOriginalMangaList")
185
+ @app.route("/getOriginalMangaList", methods=["GET", "POST"])
186
  def getOriginalMangaList(image: UploadFile = File(...)):
187
  print("收到请求")
188