Spaces:
Running
on
Zero
Running
on
Zero
yupeng.zhou
commited on
Commit
·
5caba55
1
Parent(s):
4005d74
fix
Browse files
app.py
CHANGED
|
@@ -500,7 +500,7 @@ def change_visiale_by_model_type(_model_type):
|
|
| 500 |
|
| 501 |
|
| 502 |
######### Image Generation ##############
|
| 503 |
-
@spaces.GPU(duration=
|
| 504 |
def process_generation(_sd_type,_model_type,_upload_images, _num_steps,style_name, _Ip_Adapter_Strength ,_style_strength_ratio, guidance_scale, seed_, sa32_, sa64_, id_length_, general_prompt, negative_prompt,prompt_array,G_height,G_width,_comic_type):
|
| 505 |
_model_type = "Photomaker" if _model_type == "Using Ref Images" else "original"
|
| 506 |
if _model_type == "Photomaker" and "img" not in general_prompt:
|
|
|
|
| 500 |
|
| 501 |
|
| 502 |
######### Image Generation ##############
|
| 503 |
+
@spaces.GPU(duration=60)
|
| 504 |
def process_generation(_sd_type,_model_type,_upload_images, _num_steps,style_name, _Ip_Adapter_Strength ,_style_strength_ratio, guidance_scale, seed_, sa32_, sa64_, id_length_, general_prompt, negative_prompt,prompt_array,G_height,G_width,_comic_type):
|
| 505 |
_model_type = "Photomaker" if _model_type == "Using Ref Images" else "original"
|
| 506 |
if _model_type == "Photomaker" and "img" not in general_prompt:
|