vibs08 commited on
Commit
81572b2
·
verified ·
1 Parent(s): c83db8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -212,7 +212,7 @@ def upload_file_to_s3(file_path, bucket_name, object_name=None):
212
  @app.post("/process_image/")
213
  async def process_image(
214
  file: UploadFile = File(...),
215
- seed: int = Form(0, ge=0, le=100), # Seed must be between 0 and 100
216
  enhance_image: bool = Form(False), # Default enhance_image value
217
  do_remove_background: bool = Form(True), # Default do_remove_background value
218
  foreground_ratio: float = Form(0.85, gt=0.0, lt=1.0), # Ratio must be between 0.0 and 1.0 (exclusive)
 
212
  @app.post("/process_image/")
213
  async def process_image(
214
  file: UploadFile = File(...),
215
+ seed: int = Form(0),
216
  enhance_image: bool = Form(False), # Default enhance_image value
217
  do_remove_background: bool = Form(True), # Default do_remove_background value
218
  foreground_ratio: float = Form(0.85, gt=0.0, lt=1.0), # Ratio must be between 0.0 and 1.0 (exclusive)