Spaces:
Running
on
Zero
Running
on
Zero
add to cuda
Browse files
app.py
CHANGED
@@ -109,6 +109,7 @@ def is_float(value):
|
|
109 |
@torch.inference_mode()
|
110 |
@spaces.GPU
|
111 |
def get_response(params):
|
|
|
112 |
prompt = params["prompt"]
|
113 |
ori_prompt = prompt
|
114 |
images = params.get("images", None)
|
|
|
109 |
@torch.inference_mode()
|
110 |
@spaces.GPU
|
111 |
def get_response(params):
|
112 |
+
model.to("cuda")
|
113 |
prompt = params["prompt"]
|
114 |
ori_prompt = prompt
|
115 |
images = params.get("images", None)
|