Repair some bugs.
This commit is contained in:
parent
729e64ca8e
commit
f73b2505d7
@ -32,7 +32,7 @@ def main(
|
||||
if seed == -1:
|
||||
seed_generated = util.generate_seed()
|
||||
start_time = time.time()
|
||||
images = stub.app.run_inference.call(
|
||||
images = stub.app.run_inference.remote(
|
||||
prompt=prompt,
|
||||
n_prompt=n_prompt,
|
||||
height=height,
|
||||
|
||||
@ -7,7 +7,7 @@ from txt2img import StableDiffusion, new_stable_diffusion
|
||||
@stub.function(gpu="A10G")
|
||||
def main():
|
||||
sd = new_stable_diffusion()
|
||||
print(isinstance(sd, StableDiffusion))
|
||||
print(f"Deploy '{sd.__class__.__name__}'.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user