LapStore
commited on
Commit
·
7c14c4a
1
Parent(s):
9beab52
modified Video
Browse files- app.py +2 -2
- index.html +1 -1
app.py
CHANGED
@@ -21,7 +21,7 @@ app = FastAPI()
|
|
21 |
def main():
|
22 |
return "Hello From Background remover !"
|
23 |
|
24 |
-
|
25 |
|
26 |
|
27 |
@app.post('/imageStep1')
|
@@ -121,7 +121,7 @@ async def Video(video_file: UploadFile = File(...),background_image: Optional [U
|
|
121 |
with open(input_path_toWrite, 'wb') as f:
|
122 |
f.write(await video_file.read())
|
123 |
|
124 |
-
#--------> mp4?
|
125 |
|
126 |
SegmenterBackground().Back_video(input_path_toWrite, output_path,input_to_type_of_filters,kind_back,blur_radius)#video,background_image,what_remove,blur_radius=23)
|
127 |
|
|
|
21 |
def main():
|
22 |
return "Hello From Background remover !"
|
23 |
|
24 |
+
|
25 |
|
26 |
|
27 |
@app.post('/imageStep1')
|
|
|
121 |
with open(input_path_toWrite, 'wb') as f:
|
122 |
f.write(await video_file.read())
|
123 |
|
124 |
+
#--------> mp4? (when tried ,worked on it although) sound??
|
125 |
|
126 |
SegmenterBackground().Back_video(input_path_toWrite, output_path,input_to_type_of_filters,kind_back,blur_radius)#video,background_image,what_remove,blur_radius=23)
|
127 |
|
index.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
type_of_filters :<p><input type="text" name="type_of_filters" /></p><br>
|
8 |
kind_back :<p><input type="text" name="kind_back" /></p><br>
|
9 |
blur_radius :<p><input type="text" name="blur_radius" /></p><br>
|
10 |
-
Video : <input type="file" name="
|
11 |
Background_Image : <input type="file" name="background_image" ><br><br>
|
12 |
|
13 |
<p><input type="submit" value="submit" /></p>
|
|
|
7 |
type_of_filters :<p><input type="text" name="type_of_filters" /></p><br>
|
8 |
kind_back :<p><input type="text" name="kind_back" /></p><br>
|
9 |
blur_radius :<p><input type="text" name="blur_radius" /></p><br>
|
10 |
+
Video : <input type="file" name="video_file" required><br><br>
|
11 |
Background_Image : <input type="file" name="background_image" ><br><br>
|
12 |
|
13 |
<p><input type="submit" value="submit" /></p>
|