Spaces:
xp3857
/
Build error

xp3857 commited on
Commit
3e5bb4b
1 Parent(s): a1d22a1

Update validate.py

Browse files
Files changed (1) hide show
  1. validate.py +13 -11
validate.py CHANGED
@@ -1,14 +1,16 @@
1
  import gradio as gr
2
  import os
3
  o=os.environ['P']
4
- def checkp(p):
5
- if p == o:
6
- os.system('python app.py')
7
- elif p != o:
8
- pass
9
- with gr.Blocks() as validate:
10
- with gr.Row():
11
- pass_box=gr.Textbox()
12
- pass_btn=gr.Button()
13
- pass_btn.click(checkp,pass_box,None)
14
- validate.launch()
 
 
 
1
  import gradio as gr
2
  import os
3
  o=os.environ['P']
4
+ def main()
5
+ def checkp(p):
6
+ if p == o:
7
+ os.system('python app.py')
8
+ elif p != o:
9
+ pass
10
+ with gr.Blocks() as validate:
11
+ with gr.Row():
12
+ pass_box=gr.Textbox()
13
+ pass_btn=gr.Button()
14
+ pass_btn.click(checkp,pass_box,None)
15
+ validate.launch()
16
+ main()