| 32 | |
| 33 | |
| 34 | class Script(scripts.Script): |
| 35 | global button |
| 36 | def title(self): |
| 37 | return "TemporalKit" |
| 38 | |
| 39 | def show(self, is_img2img): |
| 40 | if is_img2img: |
| 41 | return True |
| 42 | return True |
| 43 | |
| 44 | |
| 45 | def ui(self, is_img2img): |
| 46 | global lastimage |
| 47 | savebutton = gr.Button("save", label="Save") |
| 48 | savebutton.click( |
| 49 | fn=on_button_click, |
| 50 | ) |
| 51 | movebutton = gr.Button("move", label="Move") |
| 52 | movebutton.click( |
| 53 | fn=None, |
| 54 | _js="switch_to_temporal_kit", |
| 55 | ) |
| 56 | |
| 57 | |
| 58 | def run(self, p): |
| 59 | global lastimage |
| 60 | processed = processing.process_images(p) |
| 61 | lastimage = processed.images[0] |
| 62 | #registerbuttons(button) |
| 63 | return processed |
| 64 |
nothing calls this directly
no outgoing calls
no test coverage detected