Spaces:
Runtime error
Runtime error
Commit
β’
3051f7b
1
Parent(s):
cd2465c
Update app.py
Browse files
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)
|