LogicGoInfotechSpaces commited on
Commit
72a96c5
·
1 Parent(s): be32143

Fix: use @api.post for /api/image-edit endpoint registration

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -390,7 +390,7 @@ _register_attribute_endpoint("/api/orange-hair-text", "Orange hair (text)")
390
  _register_attribute_endpoint("/api/blonde-hair-text", "Blonde hair (text)")
391
 
392
 
393
- @app.post("/api/image-edit")
394
  async def api_image_edit(
395
  file: UploadFile = File(...),
396
  attribute: str = Form("Smile"),
 
390
  _register_attribute_endpoint("/api/blonde-hair-text", "Blonde hair (text)")
391
 
392
 
393
+ @api.post("/api/image-edit")
394
  async def api_image_edit(
395
  file: UploadFile = File(...),
396
  attribute: str = Form("Smile"),