Spaces:
Paused
Paused
update inversion
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def inversion(image_in, progress=gr.Progress(track_tqdm=True)):
|
|
10 |
# saving the input image
|
11 |
image_in.save("assets/test_images/cats/input_image.png")
|
12 |
# Run the script file
|
13 |
-
subprocess.run(["python", "src/inversion.py", "--input_image", "input_image.png", "--results_folder", "output/test_cat"])
|
14 |
# Open the text file with blip caption
|
15 |
with open("output/test_cat/prompt/input_image.txt", "r") as file:
|
16 |
# Read the file
|
|
|
10 |
# saving the input image
|
11 |
image_in.save("assets/test_images/cats/input_image.png")
|
12 |
# Run the script file
|
13 |
+
subprocess.run(["python", "src/inversion.py", "--input_image", "assets/test_images/cats/input_image.png", "--results_folder", "output/test_cat"])
|
14 |
# Open the text file with blip caption
|
15 |
with open("output/test_cat/prompt/input_image.txt", "r") as file:
|
16 |
# Read the file
|