Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
| 10 |
# Load the model from Hugging Face Hub
|
| 11 |
def load_model_from_huggingface():
|
| 12 |
# Replace with your Hugging Face model ID (username/model-name)
|
| 13 |
-
model_id = "
|
| 14 |
checkpoint_path = hf_hub_download(repo_id=model_id, filename="gpt_checkpoint.pth")
|
| 15 |
|
| 16 |
checkpoint = torch.load(checkpoint_path, map_location=device)
|
|
|
|
| 10 |
# Load the model from Hugging Face Hub
|
| 11 |
def load_model_from_huggingface():
|
| 12 |
# Replace with your Hugging Face model ID (username/model-name)
|
| 13 |
+
model_id = "EzhirkoArulmozhi/DecoderTransformerModel"
|
| 14 |
checkpoint_path = hf_hub_download(repo_id=model_id, filename="gpt_checkpoint.pth")
|
| 15 |
|
| 16 |
checkpoint = torch.load(checkpoint_path, map_location=device)
|