Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,12 +77,11 @@ with gr.Blocks(title="Binary Search Game") as demo:
|
|
| 77 |
)
|
| 78 |
|
| 79 |
# Input
|
|
|
|
|
|
|
|
|
|
| 80 |
user_number = gr.Number(label="Enter a number to search (1โ50)", value=1, precision=0)
|
| 81 |
run_button = gr.Button("Run Binary Search ๐")
|
| 82 |
-
|
| 83 |
-
# Output: show the generated list
|
| 84 |
-
list_box = gr.Textbox(label="Generated Sorted List", lines=2, interactive=False)
|
| 85 |
-
|
| 86 |
# Step-by-step outputs
|
| 87 |
gr.Markdown("### ๐น Search Steps:")
|
| 88 |
step_boxes = [gr.Textbox(label=f"Step {i+1}", lines=1, interactive=False) for i in range(8)]
|
|
|
|
| 77 |
)
|
| 78 |
|
| 79 |
# Input
|
| 80 |
+
|
| 81 |
+
#show the generated list
|
| 82 |
+
list_box = gr.Textbox(label="Generated Sorted List", lines=2, interactive=False)
|
| 83 |
user_number = gr.Number(label="Enter a number to search (1โ50)", value=1, precision=0)
|
| 84 |
run_button = gr.Button("Run Binary Search ๐")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
# Step-by-step outputs
|
| 86 |
gr.Markdown("### ๐น Search Steps:")
|
| 87 |
step_boxes = [gr.Textbox(label=f"Step {i+1}", lines=1, interactive=False) for i in range(8)]
|