Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -461,12 +461,19 @@ app = gr.ChatInterface(
|
|
| 461 |
concurrency_limit=20,
|
| 462 |
)
|
| 463 |
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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():
|