Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -997,9 +997,9 @@ with gr.Blocks(theme="soft") as demo:
|
|
| 997 |
with gate:
|
| 998 |
with gr.Row():
|
| 999 |
first_tb = gr.Textbox(label="First name", placeholder="e.g., Shubh", scale=1)
|
| 1000 |
-
last_tb
|
| 1001 |
enter_btn = gr.Button("Enter", variant="primary")
|
| 1002 |
-
gate_msg
|
| 1003 |
|
| 1004 |
# ---- App (hidden until gate passes) ----
|
| 1005 |
app = gr.Group(visible=False)
|
|
@@ -1054,8 +1054,5 @@ with gr.Blocks(theme="soft") as demo:
|
|
| 1054 |
)
|
| 1055 |
|
| 1056 |
# Queue & launch (outside the Blocks)
|
| 1057 |
-
demo.queue(
|
| 1058 |
demo.launch(max_threads=8)
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
|
|
|
|
| 997 |
with gate:
|
| 998 |
with gr.Row():
|
| 999 |
first_tb = gr.Textbox(label="First name", placeholder="e.g., Shubh", scale=1)
|
| 1000 |
+
last_tb = gr.Textbox(label="Last name", placeholder="e.g., Laiwala", scale=1)
|
| 1001 |
enter_btn = gr.Button("Enter", variant="primary")
|
| 1002 |
+
gate_msg = gr.Markdown("", elem_classes=["text-sm"])
|
| 1003 |
|
| 1004 |
# ---- App (hidden until gate passes) ----
|
| 1005 |
app = gr.Group(visible=False)
|
|
|
|
| 1054 |
)
|
| 1055 |
|
| 1056 |
# Queue & launch (outside the Blocks)
|
| 1057 |
+
demo.queue(max_size=64)
|
| 1058 |
demo.launch(max_threads=8)
|
|
|
|
|
|
|
|
|