Spaces:
Sleeping
Sleeping
Razavipour
commited on
Commit
•
36a11f0
1
Parent(s):
b041efd
Update app.py
Browse files
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("./
|
7 |
-
tokenizer = LEDTokenizer.from_pretrained("./
|
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)
|