Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -12,7 +12,7 @@ tokenizer.push_to_hub(repo_name="text-summary-gpt2-short", repo_id="Lin0He/text-
|
|
12 |
import torch
|
13 |
import numpy as np
|
14 |
from typing import Dict, List, Any
|
15 |
-
from transformers import pipeline, AutoModelForCausalLM,
|
16 |
|
17 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
18 |
|
|
|
12 |
import torch
|
13 |
import numpy as np
|
14 |
from typing import Dict, List, Any
|
15 |
+
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
16 |
|
17 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
18 |
|