Omnibus commited on
Commit
f2ec3b4
·
1 Parent(s): 5a00796

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -462,8 +462,10 @@ app = gr.ChatInterface(
462
  )
463
  def ver(inp):
464
  if inp == "pass":
465
- app.launch(show_api=False)
 
466
  else:
 
467
  with gr.Blocks as nope:
468
  gr.HTML("""Denied""")
469
  nope.launch()
@@ -473,8 +475,7 @@ with gr.Blocks() as verify:
473
  btn=gr.Button()
474
  btn.click(ver,inp,None)
475
 
476
- if __name__ == "__main__":
477
- verify.launch(server_port=7861)
478
  '''
479
  with gr.Blocks() as app:
480
  with gr.Row():
 
462
  )
463
  def ver(inp):
464
  if inp == "pass":
465
+ print("pass")
466
+ app.launch(server_port=7860,show_api=False)
467
  else:
468
+ print("nope")
469
  with gr.Blocks as nope:
470
  gr.HTML("""Denied""")
471
  nope.launch()
 
475
  btn=gr.Button()
476
  btn.click(ver,inp,None)
477
 
478
+ verify.launch(server_port=7861)
 
479
  '''
480
  with gr.Blocks() as app:
481
  with gr.Row():