Skip to content

Commit

Permalink
Fix hugging face proxy functions not working due missing internal fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
rrg92 committed Nov 25, 2024
1 parent 7fd3e6d commit 6909831
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions powershai/providers/huggingface.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,9 @@ function New-GradioSessionApiProxyFunction {



$Istype = Get-Command IsType;
$verbose = Get-Command verbose;

$FuncScript = {
[CmdletBinding()]
param($FuncData)
Expand All @@ -1769,6 +1772,15 @@ function New-GradioSessionApiProxyFunction {
return $FuncData;
}


function IsType {
& $IsType @Args;
}

function verbose {
& $verbose @Args;
}

#objeto passado no pipeline!
$PipeObj = $FuncData.PipeObj;

Expand Down

0 comments on commit 6909831

Please sign in to comment.