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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ 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 = "satyanayak/transformer-basic"
13
- checkpoint_path = hf_hub_download(repo_id=model_id, filename="trained_model.pt")
14
 
15
  checkpoint = torch.load(checkpoint_path, map_location=device)
16
  config = checkpoint['config']
 
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)
16
  config = checkpoint['config']