Spaces:
xp3857
/
Build error

test-a / validate.py
xp3857's picture
Update validate.py
3e5bb4b
raw
history blame contribute delete
375 Bytes
import gradio as gr
import os
o=os.environ['P']
def main()
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()
main()