Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformer import GPT, GPTConfig # Import your model class
|
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
10 |
def load_model_from_hf():
|
11 |
# Replace with your Hugging Face model ID (username/model-name)
|
12 |
-
model_id = "sudhakar272/
|
13 |
checkpoint_path = hf_hub_download(repo_id=model_id, filename="transformer_model.pt")
|
14 |
|
15 |
checkpoint = torch.load(checkpoint_path, map_location=device)
|
|
|
9 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
10 |
def load_model_from_hf():
|
11 |
# Replace with your Hugging Face model ID (username/model-name)
|
12 |
+
model_id = "sudhakar272/transformer_model"
|
13 |
checkpoint_path = hf_hub_download(repo_id=model_id, filename="transformer_model.pt")
|
14 |
|
15 |
checkpoint = torch.load(checkpoint_path, map_location=device)
|