| 
														
															@@ -8,6 +8,7 @@ import com.tzld.piaoquan.recommend.model.util.JSONUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.piaoquan.recommend.model.util.PropertiesUtil; 
														 | 
														
														 | 
														
															 import com.tzld.piaoquan.recommend.model.util.PropertiesUtil; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import lombok.extern.slf4j.Slf4j; 
														 | 
														
														 | 
														
															 import lombok.extern.slf4j.Slf4j; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import java.io.File; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.io.InputStream; 
														 | 
														
														 | 
														
															 import java.io.InputStream; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 @Slf4j 
														 | 
														
														 | 
														
															 @Slf4j 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -54,6 +55,12 @@ public class DemoModel implements Model { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             String modelFile = modelDir + "/inference.pdmodel"; 
														 | 
														
														 | 
														
															             String modelFile = modelDir + "/inference.pdmodel"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             String paramFile = modelDir + "/inference.pdiparams"; 
														 | 
														
														 | 
														
															             String paramFile = modelDir + "/inference.pdiparams"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            File file = new File(modelFile); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (file.exists()) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                log.info("modelFile exists {}", file.getAbsolutePath()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                log.info("modelFile not exists {}", file.getAbsolutePath()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.info("start init Config"); 
														 | 
														
														 | 
														
															             log.info("start init Config"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             Config config = new Config(); 
														 | 
														
														 | 
														
															             Config config = new Config(); 
														 |