bingnoi commited on
Commit
17d6abf
1 Parent(s): 948d7b6

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -31,6 +31,8 @@ warnings.filterwarnings('ignore', category=UserWarning, message='TypedStorage is
31
  MODEL_PATH = os.environ.get('MODEL_PATH', 'IndexTeam/Index-1.9B-Character')
32
  TOKENIZER_PATH = os.environ.get("TOKENIZER_PATH", MODEL_PATH)
33
 
 
 
34
  tokenizer = AutoTokenizer.from_pretrained(TOKENIZER_PATH, trust_remote_code=True)
35
  model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, torch_dtype=torch.float16, device_map="auto",
36
  trust_remote_code=True)
 
31
  MODEL_PATH = os.environ.get('MODEL_PATH', 'IndexTeam/Index-1.9B-Character')
32
  TOKENIZER_PATH = os.environ.get("TOKENIZER_PATH", MODEL_PATH)
33
 
34
+ print(MODEL_PATH,TOKENIZER_PATH)
35
+
36
  tokenizer = AutoTokenizer.from_pretrained(TOKENIZER_PATH, trust_remote_code=True)
37
  model = AutoModelForCausalLM.from_pretrained(MODEL_PATH, torch_dtype=torch.float16, device_map="auto",
38
  trust_remote_code=True)