Alexandre-Numind
commited on
Commit
•
4eb458a
1
Parent(s):
bb9a67b
Update app.py
Browse files
app.py
CHANGED
@@ -306,9 +306,9 @@ def highlight_words(input_text, json_output):
|
|
306 |
model = AutoModelForCausalLM.from_pretrained(
|
307 |
"numind/NuExtract",
|
308 |
trust_remote_code=True,
|
309 |
-
device_map="cuda",
|
310 |
)
|
311 |
|
|
|
312 |
|
313 |
tokenizer = AutoTokenizer.from_pretrained("numind/NuExtract")
|
314 |
tokenizer.eos = tokenizer("<|end-output|>")
|
|
|
306 |
model = AutoModelForCausalLM.from_pretrained(
|
307 |
"numind/NuExtract",
|
308 |
trust_remote_code=True,
|
|
|
309 |
)
|
310 |
|
311 |
+
model.to("cuda")
|
312 |
|
313 |
tokenizer = AutoTokenizer.from_pretrained("numind/NuExtract")
|
314 |
tokenizer.eos = tokenizer("<|end-output|>")
|