Geek7 commited on
Commit
cd230ae
·
verified ·
1 Parent(s): df9e081

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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