Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from typing import Dict, List, Any
|
|
|
|
| 2 |
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
| 3 |
|
| 4 |
# Need to set HF_TOKEN on the endpoint creation process for this to work
|
|
|
|
| 1 |
from typing import Dict, List, Any
|
| 2 |
+
import torch
|
| 3 |
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
| 4 |
|
| 5 |
# Need to set HF_TOKEN on the endpoint creation process for this to work
|