Spaces:
Running
Running
Change layout
Browse files
app.py
CHANGED
@@ -106,19 +106,19 @@ with gr.Blocks(theme=theme) as app:
|
|
106 |
chatlog_history = gr.State([])
|
107 |
with gr.Row():
|
108 |
with gr.Column(scale=4):
|
109 |
-
chatbot = gr.Chatbot(label="Chat").style(height=
|
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 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
token_count = gr.Number(interactive=False, label="Token count")
|
123 |
with gr.Row():
|
124 |
user_message = gr.Textbox(label="Message")
|
|
|
106 |
chatlog_history = gr.State([])
|
107 |
with gr.Row():
|
108 |
with gr.Column(scale=4):
|
109 |
+
chatbot = gr.Chatbot(label="Chat").style(height=630)
|
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 |
+
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 |
+
temperature = gr.Slider(minimum=0, maximum=1, step=0.05, value=0.6, interactive=True, label="Temperature")
|
117 |
+
maximum_length = gr.Slider(minimum=0, maximum=2048, step=32, value=256, interactive=True, label="Maximum length")
|
118 |
+
top_p = gr.Slider(minimum=0, maximum=1, step=0.01, value=1, interactive=True, label="Top P")
|
119 |
+
frequency_penalty = gr.Slider(minimum=0, maximum=2, step=0.01, value=0, interactive=True, label="Frequency penalty")
|
120 |
+
presence_penalty = gr.Slider(minimum=0, maximum=2, step=0.01, value=0, interactive=True, label="Presence penalty")
|
121 |
+
# with gr.Tab("Model Settings"):
|
122 |
token_count = gr.Number(interactive=False, label="Token count")
|
123 |
with gr.Row():
|
124 |
user_message = gr.Textbox(label="Message")
|