Repair some bugs.

This commit is contained in:
hodanov 2023-09-12 20:42:40 +09:00
parent 729e64ca8e
commit f73b2505d7
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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__":