Spaces:
Sleeping
Sleeping
Update flask_app.py
Browse files- flask_app.py +1 -1
flask_app.py
CHANGED
|
@@ -22,7 +22,7 @@ def allowed_file(filename):
|
|
| 22 |
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
| 23 |
|
| 24 |
@app.route('/rm-bg/<transparent>', methods=['GET', 'POST'])
|
| 25 |
-
def upload_file(transparent
|
| 26 |
transparent = True if transparent == "true" else False
|
| 27 |
if request.method == 'POST':
|
| 28 |
if 'file' not in request.files:
|
|
|
|
| 22 |
filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
| 23 |
|
| 24 |
@app.route('/rm-bg/<transparent>', methods=['GET', 'POST'])
|
| 25 |
+
def upload_file(transparent):
|
| 26 |
transparent = True if transparent == "true" else False
|
| 27 |
if request.method == 'POST':
|
| 28 |
if 'file' not in request.files:
|