File size: 313 Bytes
f1e3d1f 46f3732 962aefc 46f3732 105bf95 46f3732 105bf95 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
import os
o=os.environ['P']
def checkp(p):
if p == o:
os.system('python app.py')
elif p != o:
pass
with gr.Blocks() as validate:
with gr.Row():
pass_box=gr.Textbox()
pass_btn=gr.Button()
pass_btn.click(checkp,pass_box,None)
validate.launch() |