Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ os.makedirs("./gradio_tmp", exist_ok=True)
|
|
117 |
upscale_model = load_sd_upscale("model_real_esran/RealESRGAN_x4.pth", device)
|
118 |
frame_interpolation_model = load_rife_model("model_rife")
|
119 |
|
120 |
-
@spaces.GPU
|
121 |
def infer(
|
122 |
prompt: str,
|
123 |
image_input: str,
|
@@ -208,7 +208,7 @@ def generate(
|
|
208 |
latents, seed = infer(
|
209 |
prompt,
|
210 |
image_input,
|
211 |
-
num_inference_steps=
|
212 |
guidance_scale=7.0,
|
213 |
seed=seed_value,
|
214 |
progress=progress,
|
|
|
117 |
upscale_model = load_sd_upscale("model_real_esran/RealESRGAN_x4.pth", device)
|
118 |
frame_interpolation_model = load_rife_model("model_rife")
|
119 |
|
120 |
+
@spaces.GPU(duration=65)
|
121 |
def infer(
|
122 |
prompt: str,
|
123 |
image_input: str,
|
|
|
208 |
latents, seed = infer(
|
209 |
prompt,
|
210 |
image_input,
|
211 |
+
num_inference_steps=4,
|
212 |
guidance_scale=7.0,
|
213 |
seed=seed_value,
|
214 |
progress=progress,
|