Spaces:
Running
Running
Back
Browse files- app.py +1 -1
- funciones.py +2 -2
app.py
CHANGED
@@ -57,7 +57,7 @@ def perform(input1, input2):
|
|
57 |
gr.State.tokens = sulkuPypi.debitTokens(gr.State.capsule, "picswap")
|
58 |
print(f"Y ahora tienes: {gr.State.tokens} tokens.")
|
59 |
|
60 |
-
return path
|
61 |
|
62 |
label = gr.Label("Hola!")
|
63 |
|
|
|
57 |
gr.State.tokens = sulkuPypi.debitTokens(gr.State.capsule, "picswap")
|
58 |
print(f"Y ahora tienes: {gr.State.tokens} tokens.")
|
59 |
|
60 |
+
return path, "Hola"
|
61 |
|
62 |
label = gr.Label("Hola!")
|
63 |
|
funciones.py
CHANGED
@@ -81,8 +81,8 @@ def mass(input1, input2):
|
|
81 |
print("Después de los selectores de modo los paths quedaron así:")
|
82 |
print("source_path: ", source_path)
|
83 |
print("target_path: ", target_path)
|
84 |
-
|
85 |
-
command = f"python run.py -s {source_path} -t {target_path} -o {result_path} --frame-processor {procesador} --execution-provider
|
86 |
print(command)
|
87 |
time.sleep(1)
|
88 |
proc = os.popen(command)
|
|
|
81 |
print("Después de los selectores de modo los paths quedaron así:")
|
82 |
print("source_path: ", source_path)
|
83 |
print("target_path: ", target_path)
|
84 |
+
#FUTURE: Agrega por parámetro o mejor aún por enviroment el hecho de si es compu para usar cpu o si es hf para usar cuda.
|
85 |
+
command = f"python run.py -s {source_path} -t {target_path} -o {result_path} --frame-processor {procesador} --execution-provider cpu"
|
86 |
print(command)
|
87 |
time.sleep(1)
|
88 |
proc = os.popen(command)
|