Geek7 commited on
Commit
e158ab7
·
verified ·
1 Parent(s): dc47015

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
5
  import io
6
 
7
  # Initialize the Flask app
8
- myapp = Flask(__name__)
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
- myapp.run(host='0.0.0.0', port=7860) # Run directly if needed for testing
 
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