Omnibus commited on
Commit
2fc22ec
1 Parent(s): f2ec3b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -460,22 +460,7 @@ app = gr.ChatInterface(
460
  examples=examples,
461
  concurrency_limit=20,
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()
472
-
473
- with gr.Blocks() as verify:
474
- inp = gr.Textbox()
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():
 
460
  examples=examples,
461
  concurrency_limit=20,
462
  )
463
+ app.launch(server_port=7861)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  '''
465
  with gr.Blocks() as app:
466
  with gr.Row():