Geek7 commited on
Commit
d9da751
·
verified ·
1 Parent(s): 6b36788

Update myapp.py

Browse files
Files changed (1) hide show
  1. myapp.py +5 -0
myapp.py CHANGED
@@ -14,6 +14,11 @@ API_TOKEN = "your_huggingface_api_key"
14
  # Initialize the Inference Client
15
  client = InferenceClient(model="stabilityai/sd-x2-latent-upscaler", token=API_TOKEN)
16
 
 
 
 
 
 
17
  @myapp.route('/upscale', methods=['POST'])
18
  def upscale_image():
19
  try:
 
14
  # Initialize the Inference Client
15
  client = InferenceClient(model="stabilityai/sd-x2-latent-upscaler", token=API_TOKEN)
16
 
17
+ @myapp.route('/')
18
+ def home():
19
+ return "Welcome to the Image Background Remover!"
20
+
21
+
22
  @myapp.route('/upscale', methods=['POST'])
23
  def upscale_image():
24
  try: