lvwerra HF staff commited on
Commit
908b38b
·
verified ·
1 Parent(s): 8a5143e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -21
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
- 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
- model = gr.Dropdown(choices=[
96
- "meta-llama/Llama-3.2-3B-Instruct",
97
- "meta-llama/Llama-3.1-8B-Instruct",
98
- "meta-llama/Llama-3.1-70B-Instruct"]
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,