baruga commited on
Commit
92fca4b
1 Parent(s): 22077a5

Change layout

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -110,15 +110,15 @@ with gr.Blocks(theme=theme) as app:
110
  with gr.Column(scale=1):
111
  # model = gr.Textbox(lines=3, value="You are a brilliant, helpful assistant, always providing answers to the best of your knowledge. If you are unsure of the answer, you indicate it to the user.", interactive=True, label="System")
112
  # model = gr.Dropdown(choices=["gpt-3.5-turbo", "gpt-4", "gpt-4-32k"], value="gpt-3.5-turbo", interactive=True, label="Model")
113
- with gr.Tab("Model Settings"):
114
- model = gr.Dropdown(choices=["gpt-3.5-turbo", "gpt-4"], value="gpt-4", interactive=True, label="Model")
115
- personality = gr.Dropdown(choices=["Assistant", "Petőfi", "Trump", "Peterson", "Paladin", "Cartman", "Grug", ], value="Assistant", interactive=True, label="Personality")
116
  with gr.Tab("Generation Settings"):
117
  temperature = gr.Slider(minimum=0, maximum=1, step=0.05, value=0.6, interactive=True, label="Temperature")
118
- maximum_length = gr.Slider(minimum=0, maximum=2048, step=64, value=128, interactive=True, label="Maximum length")
119
  top_p = gr.Slider(minimum=0, maximum=1, step=0.01, value=1, interactive=True, label="Top P")
120
  frequency_penalty = gr.Slider(minimum=0, maximum=2, step=0.01, value=0, interactive=True, label="Frequency penalty")
121
  presence_penalty = gr.Slider(minimum=0, maximum=2, step=0.01, value=0, interactive=True, label="Presence penalty")
 
 
 
122
  token_count = gr.Number(interactive=False, label="Token count")
123
  with gr.Row():
124
  user_message = gr.Textbox(label="Message")
 
110
  with gr.Column(scale=1):
111
  # model = gr.Textbox(lines=3, value="You are a brilliant, helpful assistant, always providing answers to the best of your knowledge. If you are unsure of the answer, you indicate it to the user.", interactive=True, label="System")
112
  # model = gr.Dropdown(choices=["gpt-3.5-turbo", "gpt-4", "gpt-4-32k"], value="gpt-3.5-turbo", interactive=True, label="Model")
 
 
 
113
  with gr.Tab("Generation Settings"):
114
  temperature = gr.Slider(minimum=0, maximum=1, step=0.05, value=0.6, interactive=True, label="Temperature")
115
+ maximum_length = gr.Slider(minimum=0, maximum=2048, step=32, value=256, interactive=True, label="Maximum length")
116
  top_p = gr.Slider(minimum=0, maximum=1, step=0.01, value=1, interactive=True, label="Top P")
117
  frequency_penalty = gr.Slider(minimum=0, maximum=2, step=0.01, value=0, interactive=True, label="Frequency penalty")
118
  presence_penalty = gr.Slider(minimum=0, maximum=2, step=0.01, value=0, interactive=True, label="Presence penalty")
119
+ with gr.Tab("Model Settings"):
120
+ model = gr.Dropdown(choices=["gpt-3.5-turbo", "gpt-4"], value="gpt-4", interactive=True, label="Model")
121
+ personality = gr.Dropdown(choices=["Assistant", "Petőfi", "Trump", "Peterson", "Paladin", "Cartman", "Grug", ], value="Assistant", interactive=True, label="Personality")
122
  token_count = gr.Number(interactive=False, label="Token count")
123
  with gr.Row():
124
  user_message = gr.Textbox(label="Message")