Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import subprocess
|
|
| 3 |
|
| 4 |
def generate(image, prompt, seed):
|
| 5 |
print(image, prompt, seed)
|
| 6 |
-
command = f"python handrefiner.py --input_img {image} --out_dir
|
| 7 |
try:
|
| 8 |
result = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
| 9 |
output_path = 'output/image_0.jpg'
|
|
|
|
| 3 |
|
| 4 |
def generate(image, prompt, seed):
|
| 5 |
print(image, prompt, seed)
|
| 6 |
+
command = f"python handrefiner.py --input_img {image} --out_dir output --strength 0.55 --weights models/inpaint_depth_control.ckpt --prompt '{prompt}' --seed {seed}"
|
| 7 |
try:
|
| 8 |
result = subprocess.run(command, shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
| 9 |
output_path = 'output/image_0.jpg'
|