Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -460,22 +460,7 @@ app = gr.ChatInterface(
|
|
| 460 |
examples=examples,
|
| 461 |
concurrency_limit=20,
|
| 462 |
)
|
| 463 |
-
|
| 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():
|