Spaces:
Runtime error
Runtime error
Update gptzero_free.py
Browse files- gptzero_free.py +1 -1
gptzero_free.py
CHANGED
@@ -14,7 +14,7 @@ from collections import OrderedDict
|
|
14 |
|
15 |
|
16 |
class GPT2PPL:
|
17 |
-
def __init__(self, device="
|
18 |
self.device = device
|
19 |
self.model_id = model_id
|
20 |
self.model = GPT2LMHeadModel.from_pretrained(model_id).to(device)
|
|
|
14 |
|
15 |
|
16 |
class GPT2PPL:
|
17 |
+
def __init__(self, device="cpu", model_id="gpt2"):
|
18 |
self.device = device
|
19 |
self.model_id = model_id
|
20 |
self.model = GPT2LMHeadModel.from_pretrained(model_id).to(device)
|