Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,6 @@ os.makedirs("./gradio_tmp", exist_ok=True)
|
|
| 116 |
upscale_model = load_sd_upscale("model_real_esran/RealESRGAN_x4.pth", device)
|
| 117 |
frame_interpolation_model = load_rife_model("model_rife")
|
| 118 |
|
| 119 |
-
@spaces.GPU()
|
| 120 |
def infer(
|
| 121 |
prompt: str,
|
| 122 |
image_input: str,
|
|
@@ -321,7 +320,7 @@ with gr.Blocks() as demo:
|
|
| 321 |
</table>
|
| 322 |
""")
|
| 323 |
|
| 324 |
-
|
| 325 |
def generate(
|
| 326 |
prompt,
|
| 327 |
image_input,
|
|
|
|
| 116 |
upscale_model = load_sd_upscale("model_real_esran/RealESRGAN_x4.pth", device)
|
| 117 |
frame_interpolation_model = load_rife_model("model_rife")
|
| 118 |
|
|
|
|
| 119 |
def infer(
|
| 120 |
prompt: str,
|
| 121 |
image_input: str,
|
|
|
|
| 320 |
</table>
|
| 321 |
""")
|
| 322 |
|
| 323 |
+
@spaces.GPU(duration=240)
|
| 324 |
def generate(
|
| 325 |
prompt,
|
| 326 |
image_input,
|