Update app.py
Browse files16 unmodified lines1718192021222311 unmodified lines35363738394025 unmodified lines66676869707116 unmodified linesprint(f"[SYSTEM] | Using {DEVICE} type compute device.")# VariablesMAX_SEED = 9007199254740991DEFAULT_INPUT = ""DEFAULT_NEGATIVE_INPUT = ""11 unmodified linesmodel.set_adapters(ADAPTER, adapter_weights=[0.7])model.to(DEVICE)def get_seed(seed):seed = seed.strip()if seed.isdigit():25 unmodified linesimage_paths = [save_image(img) for img in images]return image_pathswith gr.Blocks() as main:with gr.Column():input = gr.Textbox(lines=1, value=DEFAULT_INPUT, label="Input")16 unmodified lines17181920212211 unmodified lines3435363738394025 unmodified lines6667686970717216 unmodified linesprint(f"[SYSTEM] | Using {DEVICE} type compute device.")# VariablesMAX_SEED = 9007199254740991DEFAULT_INPUT = ""DEFAULT_NEGATIVE_INPUT = ""11 unmodified linesmodel.set_adapters(ADAPTER, adapter_weights=[0.7])model.to(DEVICE)# Functionsdef get_seed(seed):seed = seed.strip()if seed.isdigit():25 unmodified linesimage_paths = [save_image(img) for img in images]return image_paths# Initializewith gr.Blocks() as main:with gr.Column():input = gr.Textbox(lines=1, value=DEFAULT_INPUT, label="Input")
app.py+2-1