@@ -1000,12 +1000,12 @@ def invocations(self, req: models.InvocationsRequest):
1000
1000
print ("\n " )
1001
1001
print ("\n " )
1002
1002
print (f"\n ----------------------------invocation log@{ datetime .datetime .now ().strftime (f'%Y%m%d%H%M%S' )} --------------------------- " )
1003
- # try:
1004
- # print("")
1005
- # self.req_logging(req)
1006
- # except Exception as e:
1007
- # print("console Log ran into issue: ", e)
1008
- # print(f"log@{datetime.datetime.now().strftime(f'%Y%m%d%H%M%S')} req in invocations: {req}")
1003
+ try :
1004
+ print ("" )
1005
+ self .req_logging (req )
1006
+ except Exception as e :
1007
+ print ("console Log ran into issue: " , e )
1008
+ print (f"log@{ datetime .datetime .now ().strftime (f'%Y%m%d%H%M%S' )} req in invocations: { req } " )
1009
1009
global user_input_data
1010
1010
user_input_data = {}
1011
1011
# if 'alwayson_scripts' in req:
@@ -1085,6 +1085,14 @@ def invocations(self, req: models.InvocationsRequest):
1085
1085
elif req .task == 'image-to-image' :
1086
1086
# response = requests.get('http://0.0.0.0:8080/controlnet/model_list', params={'update': True})
1087
1087
# print('Controlnet models: ', response.text)
1088
+ response = requests .get ('http://0.0.0.0:8080/sam/heartbeat' )
1089
+ print (f'\n sam/heartbeat: { response .text } \n ' )
1090
+ response = requests .get ('http://0.0.0.0:8080/sam/sam-model' )
1091
+ print (f'\n sam/sam-model: { response .text } \n ' )
1092
+
1093
+ global user_input_data
1094
+ if user_input_data ['workflow' ] in ["style" , "image" ]:
1095
+ print (f"In { user_input_data ['workflow' ]} " )
1088
1096
1089
1097
if embeddings_s3uri != '' :
1090
1098
shared .s3_download (embeddings_s3uri , shared .cmd_opts .embeddings_dir )
0 commit comments