Spaces:
Paused
Paused
Suprhimp
commited on
Commit
·
668c84b
1
Parent(s):
c3a28fc
Update main.py
Browse files
main.py
CHANGED
@@ -31,7 +31,7 @@ def read_root():
|
|
31 |
|
32 |
|
33 |
@app.post("/tone-up")
|
34 |
-
async def
|
35 |
try:
|
36 |
image = get_image_from_s3(items.image_id)
|
37 |
out_image = image_enhance(image,items.exposure,items.saturation,items.contrast,items.brightness,items.gamma,items.shadows,items.highlights,items.whites,items.blacks,items.clarity,items.temperature,items.sharpness)
|
|
|
31 |
|
32 |
|
33 |
@app.post("/tone-up")
|
34 |
+
async def tone_up(items:ToneUpData):
|
35 |
try:
|
36 |
image = get_image_from_s3(items.image_id)
|
37 |
out_image = image_enhance(image,items.exposure,items.saturation,items.contrast,items.brightness,items.gamma,items.shadows,items.highlights,items.whites,items.blacks,items.clarity,items.temperature,items.sharpness)
|