multimodalart HF staff commited on
Commit
3051f7b
β€’
1 Parent(s): cd2465c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
 
2
 
 
3
  def generate(slider_x, slider_y, prompt):
4
  comma_concepts_x = ', '.join(slider_x)
5
  comma_concepts_y = ', '.join(slider_y)
 
1
  import gradio as gr
2
+ import spaces
3
 
4
+ @spaces.GPU
5
  def generate(slider_x, slider_y, prompt):
6
  comma_concepts_x = ', '.join(slider_x)
7
  comma_concepts_y = ', '.join(slider_y)