artificialguybr commited on
Commit
b80ba71
·
verified ·
1 Parent(s): 27195cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -22
app.py CHANGED
@@ -118,7 +118,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
118
 
119
  ## 🔧 Settings:
120
  - Adjust basic parameters in the "Common Settings" section
121
- - Fine-tune advanced options in the "Advanced Settings" section
 
122
  - Upload images for multimodal interactions
123
 
124
  Enjoy your AI-powered conversation!
@@ -150,29 +151,27 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
150
  )
151
 
152
  with gr.Accordion("Common Settings", open=False):
153
- with gr.Group():
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
- frequency_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Frequency Penalty")
158
 
159
  with gr.Accordion("Advanced Settings", open=False):
160
- with gr.Group():
161
- top_k = gr.Slider(minimum=0, maximum=100, value=0, step=1, label="Top K")
162
- presence_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Presence Penalty")
163
- repetition_penalty = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="Repetition Penalty")
164
- stop = gr.Textbox(label="Stop Sequence")
165
-
166
- with gr.Group():
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
- logit_bias = gr.Textbox(label="Logit Bias (JSON)")
171
- logprobs = gr.Checkbox(label="Log Probabilities")
172
- top_logprobs = gr.Slider(minimum=0, maximum=20, value=0, step=1, label="Top Log Probabilities")
173
- response_format = gr.Textbox(label="Response Format (JSON)")
174
- tools = gr.Textbox(label="Tools (JSON Array)")
175
- tool_choice = gr.Textbox(label="Tool Choice")
176
 
177
  with gr.Column(scale=2):
178
  chatbot = gr.ChatInterface(
 
118
 
119
  ## 🔧 Settings:
120
  - Adjust basic parameters in the "Common Settings" section
121
+ - Fine-tune options in the "Advanced Settings" section
122
+ - Access expert-level controls in the "Expert Settings" section
123
  - Upload images for multimodal interactions
124
 
125
  Enjoy your AI-powered conversation!
 
151
  )
152
 
153
  with gr.Accordion("Common Settings", open=False):
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
+ frequency_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Frequency Penalty")
 
158
 
159
  with gr.Accordion("Advanced Settings", open=False):
160
+ presence_penalty = gr.Slider(minimum=-2, maximum=2, value=0, step=0.1, label="Presence Penalty")
161
+ stop = gr.Textbox(label="Stop Sequence")
162
+ top_k = gr.Slider(minimum=0, maximum=100, value=0, step=1, label="Top K")
163
+ repetition_penalty = gr.Slider(minimum=0, maximum=2, value=1, step=0.1, label="Repetition Penalty")
164
+ min_p = gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="Min P")
165
+
166
+ with gr.Accordion("Expert Settings", open=False):
167
+ top_a = gr.Slider(minimum=0, maximum=1, value=0, step=0.01, label="Top A")
168
+ seed = gr.Number(label="Seed", precision=0)
169
+ logit_bias = gr.Textbox(label="Logit Bias (JSON)")
170
+ logprobs = gr.Checkbox(label="Log Probabilities")
171
+ top_logprobs = gr.Slider(minimum=0, maximum=20, value=0, step=1, label="Top Log Probabilities")
172
+ response_format = gr.Textbox(label="Response Format (JSON)")
173
+ tools = gr.Textbox(label="Tools (JSON Array)")
174
+ tool_choice = gr.Textbox(label="Tool Choice")
 
175
 
176
  with gr.Column(scale=2):
177
  chatbot = gr.ChatInterface(