Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,27 +76,28 @@ with gr.Blocks(css=css) as demo:
|
|
76 |
with gr.Row():
|
77 |
generate_btn = gr.Button("Let's go!")
|
78 |
clear_btn = gr.Button("Clear")
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
100 |
|
101 |
generate_btn.click(
|
102 |
fn=execute_jupyter_agent,
|
|
|
76 |
with gr.Row():
|
77 |
generate_btn = gr.Button("Let's go!")
|
78 |
clear_btn = gr.Button("Clear")
|
79 |
+
with gr.Row():
|
80 |
+
with gr.Accordion("Advanced Settings", open=False):
|
81 |
+
system_input = gr.Textbox(
|
82 |
+
label="System Prompt",
|
83 |
+
value=DEFAULT_SYSTEM_PROMPT,
|
84 |
+
elem_classes="input-box"
|
85 |
+
)
|
86 |
+
|
87 |
+
max_tokens = gr.Number(
|
88 |
+
label="Max New Tokens",
|
89 |
+
value=DEFAULT_MAX_TOKENS,
|
90 |
+
minimum=128,
|
91 |
+
maximum=2048,
|
92 |
+
step=8,
|
93 |
+
interactive=True
|
94 |
+
)
|
95 |
+
|
96 |
+
model = gr.Dropdown(choices=[
|
97 |
+
"meta-llama/Llama-3.2-3B-Instruct",
|
98 |
+
"meta-llama/Llama-3.1-8B-Instruct",
|
99 |
+
"meta-llama/Llama-3.1-70B-Instruct"]
|
100 |
+
)
|
101 |
|
102 |
generate_btn.click(
|
103 |
fn=execute_jupyter_agent,
|