Spaces:
Sleeping
Sleeping
ux: move template hint above code editor as Markdown, editor starts empty
Browse files
app.py
CHANGED
|
@@ -364,11 +364,14 @@ def build_app() -> gr.Blocks:
|
|
| 364 |
|
| 365 |
# ---- Right column: editor + run + submit ----
|
| 366 |
with gr.Column(scale=2):
|
|
|
|
|
|
|
|
|
|
| 367 |
code_editor = gr.Code(
|
| 368 |
label="Your Legesher code",
|
| 369 |
language="python",
|
| 370 |
lines=20,
|
| 371 |
-
|
| 372 |
)
|
| 373 |
|
| 374 |
with gr.Row():
|
|
@@ -480,7 +483,7 @@ def build_app() -> gr.Blocks:
|
|
| 480 |
)
|
| 481 |
|
| 482 |
clear_btn.click(
|
| 483 |
-
fn=lambda: ("
|
| 484 |
outputs=[code_editor, stdin_input, run_output],
|
| 485 |
)
|
| 486 |
|
|
|
|
| 364 |
|
| 365 |
# ---- Right column: editor + run + submit ----
|
| 366 |
with gr.Column(scale=2):
|
| 367 |
+
gr.Markdown(
|
| 368 |
+
"_Write your solution using Legesher — use native-language variable and function names_",
|
| 369 |
+
)
|
| 370 |
code_editor = gr.Code(
|
| 371 |
label="Your Legesher code",
|
| 372 |
language="python",
|
| 373 |
lines=20,
|
| 374 |
+
value="",
|
| 375 |
)
|
| 376 |
|
| 377 |
with gr.Row():
|
|
|
|
| 483 |
)
|
| 484 |
|
| 485 |
clear_btn.click(
|
| 486 |
+
fn=lambda: ("", "", ""),
|
| 487 |
outputs=[code_editor, stdin_input, run_output],
|
| 488 |
)
|
| 489 |
|