Skip to content

Commit a13f279

Browse files
committed
refactor
1 parent f2319d6 commit a13f279

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

clarifai_datautils/text/prompt_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import json
44
from enum import Enum
5-
from typing import Any, List, Optional
5+
from typing import Any, Optional
66

77
import requests
88
from jinja2.sandbox import ImmutableSandboxedEnvironment
@@ -381,8 +381,8 @@ def gemini_text_image_pt(messages: list):
381381

382382
def hf_chat_template(model: str,
383383
messages: list,
384-
hf_token: str,
385-
chat_template: Optional[Any] = None) -> List[str, Any]:
384+
hf_token: Optional[str] = None,
385+
chat_template: Optional[Any] = None):
386386
## get the tokenizer config from huggingface
387387
bos_token = ""
388388
eos_token = ""

0 commit comments

Comments
 (0)