Update myapp.py
Browse files
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:
|