Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('.')
|