Spaces:
Paused
Paused
update random seed datatype to integer
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ def inversion(image_in): #, progress=gr.Progress(track_tqdm=True)):
|
|
28 |
# This will save the edited image as output/test_cat/edit/image-name.png
|
29 |
def image_edit(task_name, seed): #, progress=gr.Progress(track_tqdm=True)):
|
30 |
#progress(0, desc="Starting...")
|
|
|
31 |
img_label = f"./input_image_{seed}"
|
32 |
# Run the script file
|
33 |
subprocess.run(["python", "src/edit_real.py", "--inversion", f"output/test_cat/inversion/{img_label}.pt",
|
|
|
28 |
# This will save the edited image as output/test_cat/edit/image-name.png
|
29 |
def image_edit(task_name, seed): #, progress=gr.Progress(track_tqdm=True)):
|
30 |
#progress(0, desc="Starting...")
|
31 |
+
seed = int(seed)
|
32 |
img_label = f"./input_image_{seed}"
|
33 |
# Run the script file
|
34 |
subprocess.run(["python", "src/edit_real.py", "--inversion", f"output/test_cat/inversion/{img_label}.pt",
|