Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions js/src/lib/interfaces/Libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export enum ModelLibrary {
"stable-baselines3" = "Stable-Baselines3",
"ml-agents" = "ML-Agents",
"pythae" = "Pythae",
"tdc" = "TDC"
}

export type ModelLibraryKey = keyof typeof ModelLibrary;
Expand Down Expand Up @@ -416,6 +417,16 @@ const pythae = (model: ModelData) =>

model = AutoModel.load_from_hf_hub("${model.id}")`;

const tdc = (model: ModelData) =>
`from tdc import tdc_hf_interface
# initialize an interface object with HF repo name
tdc_hf = tdc_hf_interface("${model.id}")
# upload folder/files to this repo
tdc_hf.upload('UPLOAD FOLDER PATH')
# load deeppurpose model from this repo
dp_model = tdc_hf.load_deeppurpose('SAVED FOLDER PATH')
dp_model.predict('YOUR SMILES STRING')`;

//#endregion


Expand Down Expand Up @@ -572,5 +583,11 @@ export const MODEL_LIBRARIES_UI_ELEMENTS: Partial<Record<ModelLibraryKey, Librar
repoUrl: "https://github.com/clementchadebec/benchmark_VAE",
snippet: pythae,
},
"tdc": {
btnLabel: "tdc",
repoName: "tdc",
repoUrl: "https://github.com/mims-harvard/TDC",
snippet: tdc,
},
} as const;