(context)
| 367 | |
| 368 | |
| 369 | def stop_rendering(context): |
| 370 | try: |
| 371 | res = webui_post("/sdapi/v1/interrupt") |
| 372 | if res.status_code != 200: |
| 373 | raise Exception(res.text) |
| 374 | except Exception as e: |
| 375 | print(f"Error interrupting webui: {e}") |
| 376 | |
| 377 | |
| 378 | def refresh_models(): |
nothing calls this directly
no test coverage detected