Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -460,19 +460,20 @@ app = gr.ChatInterface(
|
|
460 |
examples=examples,
|
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 |
app.launch(show_api=False)
|
469 |
else:
|
470 |
with gr.Blocks as nope:
|
471 |
gr.HTML("""Denied""")
|
472 |
-
nope.launch()
|
473 |
|
474 |
-
|
|
|
|
|
|
|
475 |
|
|
|
476 |
verify.launch()
|
477 |
'''
|
478 |
with gr.Blocks() as app:
|
|
|
460 |
examples=examples,
|
461 |
concurrency_limit=20,
|
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()
|
470 |
|
471 |
+
with gr.Blocks() as verify:
|
472 |
+
inp = gr.Textbox()
|
473 |
+
btn=gr.Button()
|
474 |
+
btn.click(ver,inp,None)
|
475 |
|
476 |
+
if __name__ == "__main__":
|
477 |
verify.launch()
|
478 |
'''
|
479 |
with gr.Blocks() as app:
|