@@ -1101,8 +1101,8 @@ def invocations(self, req: models.InvocationsRequest):
1101
1101
1102
1102
if req .task == 'text-to-image' :
1103
1103
if embeddings_s3uri != '' :
1104
- # response = requests.get('http://0.0.0.0:8080/controlnet/model_list', params={'update': True})
1105
- # print('Controlnet models: ', response.text)
1104
+ response = requests .get ('http://0.0.0.0:8080/controlnet/model_list' , params = {'update' : True })
1105
+ print ('Controlnet models: ' , response .text )
1106
1106
1107
1107
shared .s3_download (embeddings_s3uri , shared .cmd_opts .embeddings_dir )
1108
1108
sd_hijack .model_hijack .embedding_db .load_textual_inversion_embeddings ()
@@ -1119,8 +1119,8 @@ def invocations(self, req: models.InvocationsRequest):
1119
1119
response .info = json .dumps (oldinfo )
1120
1120
return response
1121
1121
elif req .task == 'image-to-image' :
1122
- # response = requests.get('http://0.0.0.0:8080/controlnet/model_list', params={'update': True})
1123
- # print('Controlnet models: ', response.text)
1122
+ response = requests .get ('http://0.0.0.0:8080/controlnet/model_list' , params = {'update' : True })
1123
+ print ('Controlnet models: ' , response .text )
1124
1124
# response = requests.get('http://0.0.0.0:8080/sam/heartbeat')
1125
1125
# print(f'\nsam/heartbeat: {response.text}\n')
1126
1126
# response = requests.get('http://0.0.0.0:8080/sam/sam-model')
0 commit comments