Lin0He commited on
Commit
4ebe664
·
1 Parent(s): 1eee62f

Update handler.py

Browse files
Files changed (1) hide show
  1. 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, GPT2Tokenizer
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