Spaces:
Sleeping
Sleeping
Restore model access.
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ import gradio as gr
|
|
15 |
|
16 |
from transformers import AutoTokenizer, AutoConfig, AutoModelForCausalLM
|
17 |
|
18 |
-
|
19 |
-
|
20 |
|
21 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
22 |
print(device)
|
|
|
15 |
|
16 |
from transformers import AutoTokenizer, AutoConfig, AutoModelForCausalLM
|
17 |
|
18 |
+
tokenizer = AutoTokenizer.from_pretrained("architext/gptj-162M")
|
19 |
+
finetuned = AutoModelForCausalLM.from_pretrained("architext/gptj-162M")
|
20 |
|
21 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
22 |
print(device)
|