Geek7 commited on
Commit
2942e55
·
verified ·
1 Parent(s): dfc6f1d

Update myapp.py

Browse files
Files changed (1) hide show
  1. myapp.py +2 -2
myapp.py CHANGED
@@ -1,4 +1,4 @@
1
- from flask import Flask, jsonify, request, send_file
2
  from flask_cors import CORS
3
  from rembg import remove
4
  from PIL import Image
@@ -10,7 +10,7 @@ CORS(myapp) # Enable CORS if needed
10
 
11
  @myapp.route('/')
12
  def home():
13
- return "Welcome to the Image Background Remover!" # Basic home response
14
 
15
  @myapp.route('/remove_background', methods=['POST'])
16
  def remove_background():
 
1
+ from flask import Flask, jsonify, request, send_file,render_template
2
  from flask_cors import CORS
3
  from rembg import remove
4
  from PIL import Image
 
10
 
11
  @myapp.route('/')
12
  def home():
13
+ return render_template('index.html') # Basic home response
14
 
15
  @myapp.route('/remove_background', methods=['POST'])
16
  def remove_background():