Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import transformers
|
@@ -31,7 +32,7 @@ model.eval()
|
|
31 |
conv_mode = "v1"
|
32 |
|
33 |
|
34 |
-
@
|
35 |
def inference_fn(
|
36 |
image,
|
37 |
prompt,
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
import transformers
|
|
|
32 |
conv_mode = "v1"
|
33 |
|
34 |
|
35 |
+
@spaces.GPU
|
36 |
def inference_fn(
|
37 |
image,
|
38 |
prompt,
|