Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,8 @@ def enable_lora(lora_scale, lora_in, lora_add):
|
|
68 |
lora_name = scrape_lora_link(url)
|
69 |
pipe.load_lora_weights(lora_in, weight_name=lora_name)
|
70 |
pipe.fuse_lora(lora_scale=lora_scale)
|
71 |
-
|
|
|
72 |
def generate_image(
|
73 |
prompt:str,
|
74 |
width:int=768,
|
@@ -102,7 +103,6 @@ def generate_image(
|
|
102 |
|
103 |
return image, seed
|
104 |
|
105 |
-
@spaces.GPU(duration=100)
|
106 |
def gen(
|
107 |
prompt:str,
|
108 |
lora_scale:float=1.0,
|
|
|
68 |
lora_name = scrape_lora_link(url)
|
69 |
pipe.load_lora_weights(lora_in, weight_name=lora_name)
|
70 |
pipe.fuse_lora(lora_scale=lora_scale)
|
71 |
+
|
72 |
+
@spaces.GPU(duration=60)
|
73 |
def generate_image(
|
74 |
prompt:str,
|
75 |
width:int=768,
|
|
|
103 |
|
104 |
return image, seed
|
105 |
|
|
|
106 |
def gen(
|
107 |
prompt:str,
|
108 |
lora_scale:float=1.0,
|