Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def generate_image_from_text(prompt, seed=0):
|
|
72 |
generator = torch.Generator("cpu").manual_seed(seed)
|
73 |
image = flux_pipe(
|
74 |
prompt,
|
75 |
-
height=
|
76 |
width=1024,
|
77 |
guidance_scale=3.5,
|
78 |
num_inference_steps=50,
|
@@ -81,7 +81,7 @@ def generate_image_from_text(prompt, seed=0):
|
|
81 |
).images[0]
|
82 |
return image
|
83 |
|
84 |
-
@spaces.GPU(duration=
|
85 |
def infer(image, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, seed=123, video_length=2):
|
86 |
# 한글 입력 감지 및 번역
|
87 |
if any('\u3131' <= char <= '\u318E' or '\uAC00' <= char <= '\uD7A3' for char in prompt):
|
|
|
72 |
generator = torch.Generator("cpu").manual_seed(seed)
|
73 |
image = flux_pipe(
|
74 |
prompt,
|
75 |
+
height=576,
|
76 |
width=1024,
|
77 |
guidance_scale=3.5,
|
78 |
num_inference_steps=50,
|
|
|
81 |
).images[0]
|
82 |
return image
|
83 |
|
84 |
+
@spaces.GPU(duration=600)
|
85 |
def infer(image, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, seed=123, video_length=2):
|
86 |
# 한글 입력 감지 및 번역
|
87 |
if any('\u3131' <= char <= '\u318E' or '\uAC00' <= char <= '\uD7A3' for char in prompt):
|