crash-test / app.py
mrfakename's picture
Update app.py
7cb716f verified
raw
history blame contribute delete
205 Bytes
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()