Spaces:
Runtime error
Runtime error
Moibe
commited on
Commit
•
fdb717e
1
Parent(s):
ced9582
Add argparse
Browse files
hola.py
CHANGED
@@ -1 +1,10 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import argparse
|
2 |
+
|
3 |
+
parser = argparse.ArgumentParser()
|
4 |
+
|
5 |
+
parser.add_argument('-t', '--target_path', help='Ruta al archivo de destino')
|
6 |
+
|
7 |
+
args = parser.parse_args()
|
8 |
+
|
9 |
+
print("Hola desde Hola.py")
|
10 |
+
print("El target path recibido es: ", args.target_path)
|
runner.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import time
|
3 |
|
4 |
#command = "python run.py -s D:/Esyle-Prod/fotos/irina.jpg -t D:/Briefcase/wow.jpg -o D:/Esyle-Prod/resultados/irina-wow.jpg --frame-processor face_swapper"
|
5 |
-
command = "python hola.py"
|
6 |
print(command)
|
7 |
time.sleep(1)
|
8 |
proc = os.popen(command)
|
|
|
2 |
import time
|
3 |
|
4 |
#command = "python run.py -s D:/Esyle-Prod/fotos/irina.jpg -t D:/Briefcase/wow.jpg -o D:/Esyle-Prod/resultados/irina-wow.jpg --frame-processor face_swapper"
|
5 |
+
command = "python hola.py -t D:/Esyle-Prod/fotos/irina.jpg"
|
6 |
print(command)
|
7 |
time.sleep(1)
|
8 |
proc = os.popen(command)
|