Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
|
|
5 |
import io
|
6 |
|
7 |
# Initialize the Flask app
|
8 |
-
|
9 |
CORS(myapp) # Enable CORS if needed
|
10 |
|
11 |
@myapp.route('/')
|
@@ -30,4 +30,4 @@ def remove_background():
|
|
30 |
|
31 |
# Add this block to make sure your app runs when called
|
32 |
if __name__ == "__main__":
|
33 |
-
|
|
|
5 |
import io
|
6 |
|
7 |
# Initialize the Flask app
|
8 |
+
app = Flask(__name__)
|
9 |
CORS(myapp) # Enable CORS if needed
|
10 |
|
11 |
@myapp.route('/')
|
|
|
30 |
|
31 |
# Add this block to make sure your app runs when called
|
32 |
if __name__ == "__main__":
|
33 |
+
app.run # Run directly if needed for testing
|