lambertxiao commited on
Commit
5e14c45
·
verified ·
1 Parent(s): bf55b92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ import numpy as np
7
 
8
  model_name_or_path = "lyttt/VLV_captioner"
9
  model = AutoModel.from_pretrained(model_name_or_path, revision="master", trust_remote_code=True,low_cpu_mem_usage=False)
 
10
 
11
  def drop_incomplete_tail(text):
12
  sentences = text.split('.')
 
7
 
8
  model_name_or_path = "lyttt/VLV_captioner"
9
  model = AutoModel.from_pretrained(model_name_or_path, revision="master", trust_remote_code=True,low_cpu_mem_usage=False)
10
+ model = model.to("cuda")
11
 
12
  def drop_incomplete_tail(text):
13
  sentences = text.split('.')