Spaces:
Running
on
T4
Running
on
T4
use gr.Code block
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ with demo:
|
|
97 |
_, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
|
98 |
with colum_2:
|
99 |
gr.Markdown(value=description)
|
100 |
-
code = gr.
|
101 |
|
102 |
with gr.Accordion("Advanced settings", open=False):
|
103 |
max_new_tokens= gr.Slider(
|
|
|
97 |
_, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1)
|
98 |
with colum_2:
|
99 |
gr.Markdown(value=description)
|
100 |
+
code = gr.Code(lines=5, language="python", label="Input code", value="def all_odd_elements(sequence):\n \"\"\"Returns every odd element of the sequence.\"\"\"")
|
101 |
|
102 |
with gr.Accordion("Advanced settings", open=False):
|
103 |
max_new_tokens= gr.Slider(
|