feat flux 部署

fix
This commit is contained in:
zhouchengrong
2024-12-01 15:36:24 +08:00
parent 216ca4587d
commit a9003cc81f

View File

@@ -148,9 +148,10 @@ class GenerateImage:
inputs = [input_text, input_image, input_mode]
if self.version == "fast":
ctx = self.grpc_client.async_infer(model_name=GI_MODEL_NAME, inputs=inputs, callback=self.callback)
else:
ctx = self.grpc_client.async_infer(model_name=FAST_GI_MODEL_NAME, inputs=inputs, callback=self.callback)
else:
ctx = self.grpc_client.async_infer(model_name=GI_MODEL_NAME, inputs=inputs, callback=self.callback)
time_out = 600
generate_data = None
while time_out > 0: