Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def get_prompt(file:str):
|
|
| 51 |
a=f.readlines()
|
| 52 |
return a #a[0]:positive prompt, a[1] negative prompt
|
| 53 |
|
| 54 |
-
@spaces.GPU
|
| 55 |
def init_pipe():
|
| 56 |
def unwarp_model(state_dict):
|
| 57 |
new_state_dict = {}
|
|
@@ -126,7 +126,8 @@ def init_pipe():
|
|
| 126 |
pipe.enable_model_cpu_offload()
|
| 127 |
|
| 128 |
return pipe
|
| 129 |
-
|
|
|
|
| 130 |
def inference(source_images,
|
| 131 |
target_images,
|
| 132 |
text_prompt, negative_prompt,
|
|
|
|
| 51 |
a=f.readlines()
|
| 52 |
return a #a[0]:positive prompt, a[1] negative prompt
|
| 53 |
|
| 54 |
+
@spaces.GPU(duration=360)
|
| 55 |
def init_pipe():
|
| 56 |
def unwarp_model(state_dict):
|
| 57 |
new_state_dict = {}
|
|
|
|
| 126 |
pipe.enable_model_cpu_offload()
|
| 127 |
|
| 128 |
return pipe
|
| 129 |
+
|
| 130 |
+
@spaces.GPU(duration=360)
|
| 131 |
def inference(source_images,
|
| 132 |
target_images,
|
| 133 |
text_prompt, negative_prompt,
|