Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
7 |
|
8 |
# Load the pre-trained model and tokenizer from the saved directory
|
9 |
-
model_path = "
|
10 |
tokenizer = GPT2Tokenizer.from_pretrained(model_path)
|
11 |
model = GPT2LMHeadModel.from_pretrained(model_path).to(device)
|
12 |
|
|
|
6 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
7 |
|
8 |
# Load the pre-trained model and tokenizer from the saved directory
|
9 |
+
model_path = "Blexus/Quble_Test_Model_v1_Pretrain"
|
10 |
tokenizer = GPT2Tokenizer.from_pretrained(model_path)
|
11 |
model = GPT2LMHeadModel.from_pretrained(model_path).to(device)
|
12 |
|