feat flux 部署
fix
This commit is contained in:
@@ -148,9 +148,10 @@ class GenerateImage:
|
|||||||
|
|
||||||
inputs = [input_text, input_image, input_mode]
|
inputs = [input_text, input_image, input_mode]
|
||||||
if self.version == "fast":
|
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)
|
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
|
time_out = 600
|
||||||
generate_data = None
|
generate_data = None
|
||||||
while time_out > 0:
|
while time_out > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user