UPDATE: Add placeholders for all functions
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
48afb45eb9
commit
8243e231ab
@@ -21,6 +21,12 @@ export async function get_model(modelHash: string): Promise<Uint8Array> {
|
||||
);
|
||||
}
|
||||
|
||||
export async function get_documentation_model(filename: string): Promise<Uint8Array> {
|
||||
return new Uint8Array(
|
||||
await (await fetch(`/models/${filename}.ic`)).arrayBuffer(),
|
||||
);
|
||||
}
|
||||
|
||||
export async function downloadModel(bytes: Uint8Array, fileName: string) {
|
||||
const response = await fetch("/api/download", {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user