xzl12306 commited on
Commit
3ba99f6
1 Parent(s): 6e10bff

add to cuda

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)