rename prev_prompt to default_prompt and change TODO to FIX for running check

This commit is contained in:
tonydero 2024-08-12 07:13:40 -06:00
parent 797e0ec0dd
commit 835c3d2b77

View File

@ -10,7 +10,7 @@ import re
from datetime import datetime
prev_prompt="A cat wearing an old racing helmet and goggles holding a sign that says zoom zoom"
default_prompt="A cat wearing an old racing helmet and goggles holding a sign that says zoom zoom"
ckpt_id = "./FLUX.1-schnell"
@ -31,7 +31,7 @@ def slugify(text):
return text
def flux_run(prompt, height, width, num_images_per_prompt, num_inference_steps, max_sequence_length, dirpath):
# TODO add check to make sure there isn't already one running from another source (e.g. from phone when on computer)
# FIX: add check to make sure there isn't already one running from another source (e.g. from phone when on computer)
output = pipe(
prompt,
height=height,
@ -65,7 +65,7 @@ def btn_click(btn_val):
def main(): # PyWebIO application function
put_text("Prompt:", inline=True)
pin.put_input("prompt", type="text", value=prev_prompt)
pin.put_input("prompt", type="text", value=default_prompt)
# TODO add the other parameters
put_buttons(['Generate'], onclick=btn_click)