Spaces:
Sleeping
Sleeping
Commit
·
72a96c5
1
Parent(s):
be32143
Fix: use @api.post for /api/image-edit endpoint registration
Browse files
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 |
-
@
|
| 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"),
|