Geek7 commited on
Commit
1e1eeeb
·
verified ·
1 Parent(s): eedc86a

Update app.py

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