Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,10 @@ app = Flask(__name__)
|
|
9 |
CORS(app) # Enable CORS for all routes
|
10 |
client = InferenceClient()
|
11 |
|
|
|
|
|
|
|
|
|
12 |
@app.route('/generate-image', methods=['POST'])
|
13 |
def generate_image():
|
14 |
data = request.json # Get the JSON data from the request
|
|
|
9 |
CORS(app) # Enable CORS for all routes
|
10 |
client = InferenceClient()
|
11 |
|
12 |
+
@app.route('/')
|
13 |
+
def home():
|
14 |
+
return "Welcome to the Image Background Remover!"
|
15 |
+
|
16 |
@app.route('/generate-image', methods=['POST'])
|
17 |
def generate_image():
|
18 |
data = request.json # Get the JSON data from the request
|