Omnibus commited on
Commit
7dbdb9c
·
1 Parent(s): 2eab67d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -6
app.py CHANGED
@@ -461,12 +461,19 @@ app = gr.ChatInterface(
461
  concurrency_limit=20,
462
  )
463
 
464
- if __name__ == "__main__":
465
- app.launch(show_api=False)
466
- else:
467
- with gr.Blocks as nope:
468
- gr.HTML("""Denied""")
469
- nope.launc()
 
 
 
 
 
 
 
470
  '''
471
  with gr.Blocks() as app:
472
  with gr.Row():
 
461
  concurrency_limit=20,
462
  )
463
 
464
+ with gr.Blocks() as verify:
465
+ inp = gr.Textbox()
466
+ btn=gr.Button()
467
+ if inp == "pass":
468
+ if __name__ == "__main__":
469
+ app.launch(show_api=False)
470
+ else:
471
+ pass
472
+ else:
473
+ with gr.Blocks as nope:
474
+ gr.HTML("""Denied""")
475
+ nope.launch()
476
+ verify.launch()
477
  '''
478
  with gr.Blocks() as app:
479
  with gr.Row():