sudhakar272 commited on
Commit
ded2cdd
·
verified ·
1 Parent(s): 5fd73e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/transformer-basic"
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)