Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -462,8 +462,10 @@ app = gr.ChatInterface(
|
|
462 |
)
|
463 |
def ver(inp):
|
464 |
if inp == "pass":
|
465 |
-
|
|
|
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 |
-
|
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():
|