Upload app.py with huggingface_hub
Browse files66 unmodified lines676869707071727366 unmodified linesBOARD_EMBS = np.array(boards_df["embedding"].tolist(), dtype=np.float32)
print("Loading the generation model...")generator = pipeline("text-generation", model=GEN_MODEL_NAME, device_map="auto", torch_dtype="auto")generator = pipeline("text-generation", model=GEN_MODEL_NAME, device="cuda", torch_dtype="auto")tokenizer = AutoTokenizer.from_pretrained(GEN_MODEL_NAME)
print(f"Ready - {len(boards_df)} boards, {len(riders_df):,} rider profiles used for normalization bounds.")app.py+1-1