File size: 452 Bytes
f9c8cf7
8be12ab
f9c8cf7
8be12ab
f9c8cf7
8be12ab
f9c8cf7
8be12ab
d789aff
 
f9c8cf7
8be12ab
 
1ff4547
f9c8cf7
8be12ab
57b49bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from flask import Flask, jsonify, request, send_file
from flask_cors import CORS
import io

# Initialize the Flask app
myapp = Flask(__name__)
CORS(myapp)  # Enable CORS if needed

@myapp.route('/')
def home():
    return "Welcome to the Image Background Remover!"  # Basic home response



# Add this block to make sure your app runs when called
if __name__ == "__main__":
    myapp.run(host='0.0.0.0', port=7860)  # Run directly if needed for testing