Razavipour commited on
Commit
36a11f0
1 Parent(s): b041efd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ from transformers import LEDForConditionalGeneration, LEDTokenizer
3
  import torch
4
 
5
  # Load the model and tokenizer
6
- model = LEDForConditionalGeneration.from_pretrained("./summary_generation_led_4")
7
- tokenizer = LEDTokenizer.from_pretrained("./summary_generation_led_4")
8
 
9
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
10
  model = model.to(device)
 
3
  import torch
4
 
5
  # Load the model and tokenizer
6
+ model = LEDForConditionalGeneration.from_pretrained("./summary_generation_Led_4")
7
+ tokenizer = LEDTokenizer.from_pretrained("./summary_generation_Led_4")
8
 
9
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
10
  model = model.to(device)