Spaces:
Running
on
Zero
Running
on
Zero
Boboiazumi
commited on
Commit
•
12acefe
1
Parent(s):
b9c7e81
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def _handle_roop_solve(
|
|
25 |
solved_time = time.time() - start_time
|
26 |
message = "Successfully solve the GED problem, using time ({:.3f}s).".format(solved_time)
|
27 |
|
28 |
-
return message,
|
29 |
|
30 |
@spaces.GPU
|
31 |
def handle_roop(
|
@@ -46,11 +46,11 @@ def handle_roop(
|
|
46 |
def handle_roop_clear():
|
47 |
shutil.copy(
|
48 |
src=ROOP_DEFAULT_PATH,
|
49 |
-
dst=
|
50 |
)
|
51 |
|
52 |
message = "successfully clear the files!"
|
53 |
-
return message,
|
54 |
|
55 |
|
56 |
with gr.Blocks() as ged_page:
|
@@ -106,7 +106,7 @@ with gr.Blocks() as ged_page:
|
|
106 |
with gr.Column(scale=8):
|
107 |
pass
|
108 |
with gr.Column(scale=2):
|
109 |
-
output_video = gr.Image(
|
110 |
|
111 |
solve_button.click(
|
112 |
handle_roop,
|
|
|
25 |
solved_time = time.time() - start_time
|
26 |
message = "Successfully solve the GED problem, using time ({:.3f}s).".format(solved_time)
|
27 |
|
28 |
+
return message, ROOP_OUTPUT_PATH
|
29 |
|
30 |
@spaces.GPU
|
31 |
def handle_roop(
|
|
|
46 |
def handle_roop_clear():
|
47 |
shutil.copy(
|
48 |
src=ROOP_DEFAULT_PATH,
|
49 |
+
dst=ROOP_OUTPUT_PATH
|
50 |
)
|
51 |
|
52 |
message = "successfully clear the files!"
|
53 |
+
return message, ROOP_OUTPUT_PATH
|
54 |
|
55 |
|
56 |
with gr.Blocks() as ged_page:
|
|
|
106 |
with gr.Column(scale=8):
|
107 |
pass
|
108 |
with gr.Column(scale=2):
|
109 |
+
output_video = gr.Image()
|
110 |
|
111 |
solve_button.click(
|
112 |
handle_roop,
|