callMeHeisenberg
commited on
Commit
•
3df0a69
1
Parent(s):
bebd8e4
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,13 @@ import os
|
|
4 |
|
5 |
import spaces
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
@spaces.GPU(duration=160)
|
8 |
def generate_image(text, img1, img2, img3, height, width, guidance_scale, img_guidance_scale, inference_steps, seed, separate_cfg_infer, offload_model,
|
9 |
use_input_image_size_as_output, max_input_image_size):
|
|
|
4 |
|
5 |
import spaces
|
6 |
|
7 |
+
from OmniGen import OmniGenPipeline
|
8 |
+
|
9 |
+
pipe = OmniGenPipeline.from_pretrained(
|
10 |
+
"Shitao/OmniGen-v1"
|
11 |
+
)
|
12 |
+
|
13 |
+
|
14 |
@spaces.GPU(duration=160)
|
15 |
def generate_image(text, img1, img2, img3, height, width, guidance_scale, img_guidance_scale, inference_steps, seed, separate_cfg_infer, offload_model,
|
16 |
use_input_image_size_as_output, max_input_image_size):
|