Skip to content

Commit

Permalink
Fix JavaScript (huggingface#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
osanseviero authored and LysandreJik committed Mar 16, 2022
1 parent 8488f77 commit d234f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/lib/interfaces/Libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ import fasttext

model = fasttext.load_model(hf_hub_download("${model.id}", "model.bin"))`;
const stable-baselines3 = (model: ModelData) =>
const stableBaselines3 = (model: ModelData) =>
`from huggingface_sb3 import load_from_hub
checkpoint = load_from_hub(
repo_id="${model.id}",
Expand Down Expand Up @@ -380,7 +380,7 @@ export const MODEL_LIBRARIES_UI_ELEMENTS: { [key in keyof typeof ModelLibrary]:
btnLabel: "stable-baselines3",
repoName: "stable-baselines3",
repoUrl: "https://github.com/huggingface/huggingface_sb3",
snippet: stable-baselines3,
snippet: stableBaselines3,
},
} as const;

0 comments on commit d234f0d

Please sign in to comment.