Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import os, sys | |
| def crash_app(): | |
| os.system("pkill -f python") | |
| sys.exit(0) | |
| with gr.Blocks() as demo: | |
| btn = gr.Button("Crash") | |
| btn.click(crash_app) | |
| demo.queue().launch() |