PayPeer commited on
Commit
e5c16c0
1 Parent(s): 8892df0

Non-optional

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ with gr.Blocks() as demo:
13
  model = gr.Textbox(label="Model ID", placeholder="Enter the model ID", value="text-davinci-003")
14
  frequency_penalty = gr.Number(label="Frequency Penalty", value=0.5)
15
  logit_bias = gr.Textbox(label="Logit Bias (JSON format)", placeholder="Enter logit bias as JSON", value="{\"50256\": -100, \"50257\": 100}")
16
- max_tokens = gr.Number(label="Max Tokens", optional=True, value=150)
17
  n = gr.Number(label="N", value=3)
18
  presence_penalty = gr.Number(label="Presence Penalty", value=0.6)
19
  response_format = gr.Radio(label="Response Format", choices=["text", "json_object"], value="text")
 
13
  model = gr.Textbox(label="Model ID", placeholder="Enter the model ID", value="text-davinci-003")
14
  frequency_penalty = gr.Number(label="Frequency Penalty", value=0.5)
15
  logit_bias = gr.Textbox(label="Logit Bias (JSON format)", placeholder="Enter logit bias as JSON", value="{\"50256\": -100, \"50257\": 100}")
16
+ max_tokens = gr.Number(label="Max Tokens", value=150)
17
  n = gr.Number(label="N", value=3)
18
  presence_penalty = gr.Number(label="Presence Penalty", value=0.6)
19
  response_format = gr.Radio(label="Response Format", choices=["text", "json_object"], value="text")