Dariusz Ochota commited on
Commit
d351dc3
1 Parent(s): 60fa66f

Update edit_app.py

Browse files
Files changed (1) hide show
  1. edit_app.py +2 -1
edit_app.py CHANGED
@@ -2,7 +2,7 @@ from __future__ import annotations
2
 
3
  import math
4
  import random
5
-
6
  import gradio as gr
7
  import torch
8
  from PIL import Image, ImageOps
@@ -70,6 +70,7 @@ def main():
70
  image_cfg_scale,
71
  )
72
 
 
73
  def generate(
74
  input_image: Image.Image,
75
  instruction: str,
 
2
 
3
  import math
4
  import random
5
+ import spaces
6
  import gradio as gr
7
  import torch
8
  from PIL import Image, ImageOps
 
70
  image_cfg_scale,
71
  )
72
 
73
+ @spaces.GPU(duration=600)
74
  def generate(
75
  input_image: Image.Image,
76
  instruction: str,