mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-15 13:38:07 +00:00
tests: add diffusers tests (#1419)
This commit is contained in:
committed by
GitHub
parent
831418612b
commit
48e5380e45
@ -303,12 +303,17 @@ class BackendServicer(backend_pb2_grpc.BackendServicer):
|
||||
|
||||
prompt = request.positive_prompt
|
||||
|
||||
steps = 1
|
||||
|
||||
if request.step != 0:
|
||||
steps = request.step
|
||||
|
||||
# create a dictionary of values for the parameters
|
||||
options = {
|
||||
"negative_prompt": request.negative_prompt,
|
||||
"width": request.width,
|
||||
"height": request.height,
|
||||
"num_inference_steps": request.step,
|
||||
"num_inference_steps": steps,
|
||||
}
|
||||
|
||||
if request.src != "":
|
||||
|
Reference in New Issue
Block a user