Spaces:
Running
Running
Commit
·
f9f8ce6
1
Parent(s):
49c48e3
Bug Fix
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
tokenizer = GPT2Tokenizer.from_pretrained("gpt2") # Using GPT-2 tokenizer for compatibility
|
8 |
|
9 |
# Load model
|
10 |
-
from
|
11 |
|
12 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
13 |
|
|
|
7 |
tokenizer = GPT2Tokenizer.from_pretrained("gpt2") # Using GPT-2 tokenizer for compatibility
|
8 |
|
9 |
# Load model
|
10 |
+
from train_get2-8-init import GPT, GPTConfig
|
11 |
|
12 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
13 |
|