From 69098313e7f98aecd0a2b7b753704a7bafcd1cf1 Mon Sep 17 00:00:00 2001 From: Rodrigo Ribeiro Gomes Date: Mon, 25 Nov 2024 18:05:47 -0300 Subject: [PATCH] Fix hugging face proxy functions not working due missing internal functions --- powershai/providers/huggingface.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/powershai/providers/huggingface.ps1 b/powershai/providers/huggingface.ps1 index 8a0026d..2231881 100644 --- a/powershai/providers/huggingface.ps1 +++ b/powershai/providers/huggingface.ps1 @@ -1759,6 +1759,9 @@ function New-GradioSessionApiProxyFunction { + $Istype = Get-Command IsType; + $verbose = Get-Command verbose; + $FuncScript = { [CmdletBinding()] param($FuncData) @@ -1769,6 +1772,15 @@ function New-GradioSessionApiProxyFunction { return $FuncData; } + + function IsType { + & $IsType @Args; + } + + function verbose { + & $verbose @Args; + } + #objeto passado no pipeline! $PipeObj = $FuncData.PipeObj;