LapStore commited on
Commit
5e168b6
1 Parent(s): 7928acb
Files changed (2) hide show
  1. app.py +1 -1
  2. index.html +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ async def image_step2(image_file: UploadFile = File(...),things_replace: str = F
45
 
46
  things_replace=ast.literal_eval(things_replace)
47
 
48
- produced_image=SegmenterBackground().Back_step2(image,things_replace,int(blur_radius))
49
 
50
  # Save the processed image to a temporary file
51
  output_file_path_tmp = "/tmp/tmp_processed_image.png"
 
45
 
46
  things_replace=ast.literal_eval(things_replace)
47
 
48
+ produced_image=SegmenterBackground().Back_step2(image,"cam",things_replace,int(blur_radius))
49
 
50
  # Save the processed image to a temporary file
51
  output_file_path_tmp = "/tmp/tmp_processed_image.png"
index.html CHANGED
@@ -4,7 +4,7 @@
4
  <br><br><br>
5
  <form action="https://taha454-backg.hf.space/imageStep2" method="post" enctype="multipart/form-data">
6
  <p><h3>Enter Image:</h3></p>
7
- Name :<p><input type="text" name="type_of_filters" /></p><br>
8
  blur_radius :<p><input type="text" name="blur_radius" /></p><br>
9
  Image : <input type="file" name="image_file" required><br><br>
10
  <p><input type="submit" value="submit" /></p>
 
4
  <br><br><br>
5
  <form action="https://taha454-backg.hf.space/imageStep2" method="post" enctype="multipart/form-data">
6
  <p><h3>Enter Image:</h3></p>
7
+ Name :<p><input type="text" name="things_replace" /></p><br>
8
  blur_radius :<p><input type="text" name="blur_radius" /></p><br>
9
  Image : <input type="file" name="image_file" required><br><br>
10
  <p><input type="submit" value="submit" /></p>