artificialguybr commited on
Commit
e788115
1 Parent(s): 9114a0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -151,29 +151,37 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
151
  with gr.Accordion("Advanced Settings", open=False):
152
  with gr.Row():
153
  with gr.Column(scale=1):
 
154
  temperature = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="Temperature")
155
  max_tokens = gr.Slider(minimum=1, maximum=4096, value=1000, step=1, label="Max Tokens")
156
  top_p = gr.Slider(minimum=0, maximum=1, value=1, step=0.01, label="Top P")
157
  top_k = gr.Slider(minimum=0, maximum=100, value=0, step=1, label="Top K")
158
 
159
  with gr.Column(scale=1):
 
160
  frequency_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Frequency Penalty")
161
  presence_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Presence Penalty")
162
  repetition_penalty = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="Repetition Penalty")
163
- stop = gr.Textbox(label="Stop Sequence")
164
 
165
  with gr.Row():
166
  with gr.Column(scale=1):
 
 
167
  min_p = gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="Min P")
168
  top_a = gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="Top A")
169
  seed = gr.Number(label="Seed", precision=0)
170
- logprobs = gr.Checkbox(label="Log Probabilities")
171
 
172
  with gr.Column(scale=1):
173
- logit_bias = gr.Textbox(label="Logit Bias (JSON)")
 
174
  top_logprobs = gr.Slider(minimum=0, maximum=20, value=0, step=1, label="Top Log Probabilities")
 
175
  response_format = gr.Textbox(label="Response Format (JSON)")
176
- tools = gr.Textbox(label="Tools (JSON Array)")
 
 
 
 
177
  tool_choice = gr.Textbox(label="Tool Choice")
178
 
179
  with gr.Column(scale=2):
 
151
  with gr.Accordion("Advanced Settings", open=False):
152
  with gr.Row():
153
  with gr.Column(scale=1):
154
+ gr.Markdown("### Basic Parameters")
155
  temperature = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="Temperature")
156
  max_tokens = gr.Slider(minimum=1, maximum=4096, value=1000, step=1, label="Max Tokens")
157
  top_p = gr.Slider(minimum=0, maximum=1, value=1, step=0.01, label="Top P")
158
  top_k = gr.Slider(minimum=0, maximum=100, value=0, step=1, label="Top K")
159
 
160
  with gr.Column(scale=1):
161
+ gr.Markdown("### Penalty Parameters")
162
  frequency_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Frequency Penalty")
163
  presence_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Presence Penalty")
164
  repetition_penalty = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="Repetition Penalty")
 
165
 
166
  with gr.Row():
167
  with gr.Column(scale=1):
168
+ gr.Markdown("### Advanced Control")
169
+ stop = gr.Textbox(label="Stop Sequence")
170
  min_p = gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="Min P")
171
  top_a = gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="Top A")
172
  seed = gr.Number(label="Seed", precision=0)
 
173
 
174
  with gr.Column(scale=1):
175
+ gr.Markdown("### Logging and Formatting")
176
+ logprobs = gr.Checkbox(label="Log Probabilities")
177
  top_logprobs = gr.Slider(minimum=0, maximum=20, value=0, step=1, label="Top Log Probabilities")
178
+ logit_bias = gr.Textbox(label="Logit Bias (JSON)")
179
  response_format = gr.Textbox(label="Response Format (JSON)")
180
+
181
+ with gr.Row():
182
+ with gr.Column(scale=1):
183
+ gr.Markdown("### Tools")
184
+ tools = gr.Textbox(label="Tools (JSON Array)", lines=3)
185
  tool_choice = gr.Textbox(label="Tool Choice")
186
 
187
  with gr.Column(scale=2):