zhiweili
commited on
Commit
Β·
468bb0b
1
Parent(s):
9c7e31f
fix not define
Browse files- app_onediff.py +2 -1
app_onediff.py
CHANGED
@@ -85,10 +85,11 @@ def create_demo() -> gr.Blocks:
|
|
85 |
steps:int,
|
86 |
):
|
87 |
global compiled_pipe
|
|
|
88 |
run_task_time = 0
|
89 |
time_cost_str = ''
|
90 |
run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
|
91 |
-
if
|
92 |
print("---------->Recompile<----------")
|
93 |
compiled_pipe = nexfort_compile(base_pipe)
|
94 |
generated_image = compiled_pipe(
|
|
|
85 |
steps:int,
|
86 |
):
|
87 |
global compiled_pipe
|
88 |
+
compiled_pipe = base_pipe
|
89 |
run_task_time = 0
|
90 |
time_cost_str = ''
|
91 |
run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
|
92 |
+
if id(compiled_pipe) == id(base_pipe):
|
93 |
print("---------->Recompile<----------")
|
94 |
compiled_pipe = nexfort_compile(base_pipe)
|
95 |
generated_image = compiled_pipe(
|