Spaces:
Runtime error
Runtime error
Update app.py
Browse files115 unmodified lines1161171181191201211225 unmodified lines128129130131132133134772 unmodified lines907908909910911912913914915916917918919115 unmodified lines# 3) Instruction templates & options# ------------------------------STYLE_OPTIONS = [STYLE_OPTIONS = ["Descriptive","Character training","Flux.1-Dev",5 unmodified lines"Art analysis (no artist names)","Social caption","Aesthetic tags (comma-sep)"]CAPTION_TYPE_MAP: Dict[str, str] = {"Descriptive": "Write a detailed description for this image.",772 unmodified lines# RIGHT: instructions + dataset + general sliders + logo controlswith gr.Column(scale=1):with gr.Accordion("Model Instructions", open=False):instruction_preview = gr.Textbox(label=None, lines=12,value=final_instruction(settings.get("styles", ["Character training"]),settings.get("extras", []),settings.get("name",""),settings.get("caption_length", "long"),),)dataset_name = gr.Textbox(label="Dataset name (export title prefix)",value=settings.get("dataset_name", "forgecaptions"))max_side = gr.Slider(256, 1024, settings.get("max_side", 896), step=32, label="Max side (resize)")115 unmodified lines1161171181191201215 unmodified lines127128129130131132133772 unmodified lines906907908909910911912913914915916917918919920921115 unmodified lines# 3) Instruction templates & options# ------------------------------STYLE_OPTIONS = ["Descriptive","Character training","Flux.1-Dev",5 unmodified lines"Art analysis (no artist names)","Social caption","Aesthetic tags (comma-sep)"]CAPTION_TYPE_MAP: Dict[str, str] = {"Descriptive": "Write a detailed description for this image.",772 unmodified lines# RIGHT: instructions + dataset + general sliders + logo controlswith gr.Column(scale=1):with gr.Accordion("Model Instructions", open=False):instruction_preview = gr.Textbox(label=None,lines=12,value=final_instruction(settings.get("styles", ["Character training"]),settings.get("extras", []),settings.get("name",""),settings.get("caption_length", "long"),),)dataset_name = gr.Textbox(label="Dataset name (export title prefix)",value=settings.get("dataset_name", "forgecaptions"))max_side = gr.Slider(256, 1024, settings.get("max_side", 896), step=32, label="Max side (resize)")
app.py+11-9