From 3f8c886b9669914747944d36fbb629537c2162d5 Mon Sep 17 00:00:00 2001 From: pngwn Date: Mon, 13 May 2024 13:45:35 +0100 Subject: [PATCH 1/7] fix param name --- js/app/src/api_docs/CodeSnippet.svelte | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app/src/api_docs/CodeSnippet.svelte b/js/app/src/api_docs/CodeSnippet.svelte index a2876ba9d8284..f7a98d2ff2a7f 100644 --- a/js/app/src/api_docs/CodeSnippet.svelte +++ b/js/app/src/api_docs/CodeSnippet.svelte @@ -29,11 +29,11 @@ let bash_get_code: HTMLElement; let has_file_path = endpoint_parameters.some((param: EndpointParameter) => - is_potentially_nested_file_data(param.example_input) + is_potentially_nested_file_data(param.example_input), ); let blob_components = ["Audio", "File", "Image", "Video"]; let blob_examples: any[] = endpoint_parameters.filter( - (param: EndpointParameter) => blob_components.includes(param.component) + (param: EndpointParameter) => blob_components.includes(param.component), ); @@ -65,7 +65,7 @@ result = client.predict{represent_value( parameter_has_default ? parameter_default : example_input, python_type.type, - "py" + "py", )},{/each}