Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import shutil
|
3 |
import gradio as gr
|
4 |
from PIL import Image
|
5 |
-
|
6 |
|
7 |
|
8 |
def process_images(cloth_image, origin_image):
|
@@ -24,8 +24,9 @@ def process_images(cloth_image, origin_image):
|
|
24 |
print("saved")
|
25 |
# Run your main.py script (assuming it's in the same directory)
|
26 |
# Note: You might need to adjust the command based on your actual script's requirements
|
27 |
-
|
28 |
-
|
|
|
29 |
print("might run")
|
30 |
# Return the final image
|
31 |
final_image_path = os.path.join(input_dir, 'finalimg.png')
|
|
|
2 |
import shutil
|
3 |
import gradio as gr
|
4 |
from PIL import Image
|
5 |
+
|
6 |
|
7 |
|
8 |
def process_images(cloth_image, origin_image):
|
|
|
24 |
print("saved")
|
25 |
# Run your main.py script (assuming it's in the same directory)
|
26 |
# Note: You might need to adjust the command based on your actual script's requirements
|
27 |
+
os.system("python virtual-try-on/TryYours-Virtual-Try-On/main.py ")
|
28 |
+
#command = ["python", "virtual-try-on/TryYours-Virtual-Try-On/main.py"]
|
29 |
+
#subprocess.run(command, check=True)
|
30 |
print("might run")
|
31 |
# Return the final image
|
32 |
final_image_path = os.path.join(input_dir, 'finalimg.png')
|