Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,16 +30,16 @@ with gr.Blocks() as demo:
|
|
30 |
model = gr.Textbox(label="Model ID", placeholder="Enter the model ID", value="text-davinci-003")
|
31 |
frequency_penalty = gr.Number(label="Frequency Penalty", value=0.5)
|
32 |
logit_bias = gr.Textbox(label="Logit Bias (JSON format)", placeholder="Enter logit bias as JSON", value="{\"50256\": -100, \"50257\": 100}")
|
33 |
-
max_tokens = gr.Number(label="Max Tokens",
|
34 |
n = gr.Number(label="N", value=3)
|
35 |
presence_penalty = gr.Number(label="Presence Penalty", value=0.6)
|
36 |
response_format = gr.Radio(label="Response Format", choices=["text", "json_object"], value="text")
|
37 |
-
seed = gr.Number(label="Seed",
|
38 |
stop = gr.Textbox(label="Stop Sequence(s)", placeholder="Enter stop sequences", value="[\"\\n\", \" end\"]")
|
39 |
stream = gr.Checkbox(label="Stream", value=False)
|
40 |
temperature = gr.Slider(label="Temperature", minimum=0, maximum=2, value=0.7)
|
41 |
top_p = gr.Slider(label="Top P", minimum=0, maximum=1, value=0.9)
|
42 |
-
tools = gr.Textbox(label="Tools (JSON format)",
|
43 |
tool_choice = gr.Textbox(label="Tool Choice", value="spellcheck", placeholder="Enter tool choice")
|
44 |
user = gr.Textbox(label="User", placeholder="Enter user identifier", value="user123")
|
45 |
|
|
|
30 |
model = gr.Textbox(label="Model ID", placeholder="Enter the model ID", value="text-davinci-003")
|
31 |
frequency_penalty = gr.Number(label="Frequency Penalty", value=0.5)
|
32 |
logit_bias = gr.Textbox(label="Logit Bias (JSON format)", placeholder="Enter logit bias as JSON", value="{\"50256\": -100, \"50257\": 100}")
|
33 |
+
max_tokens = gr.Number(label="Max Tokens", value=150)
|
34 |
n = gr.Number(label="N", value=3)
|
35 |
presence_penalty = gr.Number(label="Presence Penalty", value=0.6)
|
36 |
response_format = gr.Radio(label="Response Format", choices=["text", "json_object"], value="text")
|
37 |
+
seed = gr.Number(label="Seed", value=42)
|
38 |
stop = gr.Textbox(label="Stop Sequence(s)", placeholder="Enter stop sequences", value="[\"\\n\", \" end\"]")
|
39 |
stream = gr.Checkbox(label="Stream", value=False)
|
40 |
temperature = gr.Slider(label="Temperature", minimum=0, maximum=2, value=0.7)
|
41 |
top_p = gr.Slider(label="Top P", minimum=0, maximum=1, value=0.9)
|
42 |
+
tools = gr.Textbox(label="Tools (JSON format)", placeholder="Enter tools as JSON", value="{\"spellcheck\": true, \"grammar_check\": false}")
|
43 |
tool_choice = gr.Textbox(label="Tool Choice", value="spellcheck", placeholder="Enter tool choice")
|
44 |
user = gr.Textbox(label="User", placeholder="Enter user identifier", value="user123")
|
45 |
|