Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,11 @@ app = Flask(__name__)
|
|
8 |
CORS(app) # Enable CORS for all routes
|
9 |
client = InferenceClient()
|
10 |
|
|
|
|
|
|
|
|
|
|
|
11 |
@app.route('/generate-image', methods=['POST'])
|
12 |
def generate_image():
|
13 |
# Get the image file from the request
|
|
|
8 |
CORS(app) # Enable CORS for all routes
|
9 |
client = InferenceClient()
|
10 |
|
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 |
# Get the image file from the request
|