mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
tests: add diffusers tests (#1419)
This commit is contained in:
parent
831418612b
commit
48e5380e45
8 changed files with 148 additions and 38 deletions
|
@ -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 != "":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue