Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
|
|
|
| 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 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 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 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 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(
|