Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import os
|
|
5 |
def generate(image, prompt, seed):
|
6 |
print(image, prompt, seed)
|
7 |
image_name = os.path.splitext(image)[0]
|
|
|
8 |
command = f"python handrefiner.py --input_img {image} --out_dir output --strength 0.55 --weights models/inpaint_depth_control.ckpt --prompt '{prompt}' --seed {seed}"
|
9 |
try:
|
10 |
result = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
|
|
5 |
def generate(image, prompt, seed):
|
6 |
print(image, prompt, seed)
|
7 |
image_name = os.path.splitext(image)[0]
|
8 |
+
print(f"IMAGE NAME: {image_name}")
|
9 |
command = f"python handrefiner.py --input_img {image} --out_dir output --strength 0.55 --weights models/inpaint_depth_control.ckpt --prompt '{prompt}' --seed {seed}"
|
10 |
try:
|
11 |
result = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|