File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function nameWithoutNamespace(modelId: string): string {
99	return  splitted . length  ===  1  ? splitted [ 0 ]  : splitted [ 1 ] ; 
1010} 
1111
12- const  escapeQuotes  =  ( str : string ) : string  =>    JSON . stringify ( str ) ; 
12+ const  escapeQuotes  =  ( str : string ) : string  =>  JSON . stringify ( str ) ; 
1313
1414//#region snippets 
1515
@@ -75,9 +75,9 @@ function get_base_diffusers_model(model: ModelData): string {
7575
7676function  get_prompt_from_diffusers_model ( model : ModelData ) : string  |  undefined  { 
7777	const  prompt  =  ( model . widgetData ?. [ 0 ]  as  WidgetExampleTextInput ) . text  ??  model . cardData ?. instance_prompt ; 
78-      if ( prompt ) { 
79-          return  escapeQuotes ( prompt ) ; 
80-      } 
78+ 	 if   ( prompt )   { 
79+ 		 return  escapeQuotes ( prompt ) ; 
80+ 	 } 
8181} 
8282
8383export  const  bertopic  =  ( model : ModelData ) : string [ ]  =>  [ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments