QY-H00 commited on
Commit
ab7e618
·
1 Parent(s): 2f22469
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  from typing import Optional
3
 
4
  import gradio as gr
@@ -243,7 +244,7 @@ def dynamic_gallery_fn(interpolation_size: int):
243
  label="Result", show_label=False, rows=1, columns=interpolation_size
244
  )
245
 
246
-
247
  @torch.no_grad()
248
  def generate(
249
  prompt1,
 
1
  import os
2
+ import spaces
3
  from typing import Optional
4
 
5
  import gradio as gr
 
244
  label="Result", show_label=False, rows=1, columns=interpolation_size
245
  )
246
 
247
+ @spaces.GPU
248
  @torch.no_grad()
249
  def generate(
250
  prompt1,