Spaces:
Running
Running
Unrestricted chatbox length
Browse files
app.py
CHANGED
@@ -111,6 +111,7 @@ def run():
|
|
111 |
elem_id="chatbot",
|
112 |
scale=1,
|
113 |
show_copy_button=True,
|
|
|
114 |
layout="panel",
|
115 |
)
|
116 |
with gr.Blocks(fill_height=True) as demo:
|
@@ -131,19 +132,22 @@ def run():
|
|
131 |
value=list(MODELS.keys())[0],
|
132 |
label="Model",
|
133 |
visible=False,
|
|
|
134 |
),
|
135 |
gr.Dropdown(
|
136 |
choices=list(SYSTEM_PROMPTS.keys()),
|
137 |
value=list(SYSTEM_PROMPTS.keys())[0],
|
138 |
label="System Prompt",
|
139 |
visible=False,
|
|
|
140 |
),
|
141 |
gr.Slider(
|
142 |
-
minimum=
|
143 |
maximum=4096,
|
144 |
step=1,
|
145 |
value=1024,
|
146 |
label="Max tokens",
|
|
|
147 |
render=False,
|
148 |
),
|
149 |
gr.Slider(
|
@@ -152,6 +156,7 @@ def run():
|
|
152 |
step=0.1,
|
153 |
value=0.3,
|
154 |
label="Temperature",
|
|
|
155 |
render=False,
|
156 |
),
|
157 |
gr.Slider(
|
@@ -160,6 +165,7 @@ def run():
|
|
160 |
step=0.1,
|
161 |
value=1.0,
|
162 |
label="Top-p",
|
|
|
163 |
render=False,
|
164 |
),
|
165 |
],
|
|
|
111 |
elem_id="chatbot",
|
112 |
scale=1,
|
113 |
show_copy_button=True,
|
114 |
+
height="70%",
|
115 |
layout="panel",
|
116 |
)
|
117 |
with gr.Blocks(fill_height=True) as demo:
|
|
|
132 |
value=list(MODELS.keys())[0],
|
133 |
label="Model",
|
134 |
visible=False,
|
135 |
+
render=False,
|
136 |
),
|
137 |
gr.Dropdown(
|
138 |
choices=list(SYSTEM_PROMPTS.keys()),
|
139 |
value=list(SYSTEM_PROMPTS.keys())[0],
|
140 |
label="System Prompt",
|
141 |
visible=False,
|
142 |
+
render=False,
|
143 |
),
|
144 |
gr.Slider(
|
145 |
+
minimum=1,
|
146 |
maximum=4096,
|
147 |
step=1,
|
148 |
value=1024,
|
149 |
label="Max tokens",
|
150 |
+
visible=True,
|
151 |
render=False,
|
152 |
),
|
153 |
gr.Slider(
|
|
|
156 |
step=0.1,
|
157 |
value=0.3,
|
158 |
label="Temperature",
|
159 |
+
visible=True,
|
160 |
render=False,
|
161 |
),
|
162 |
gr.Slider(
|
|
|
165 |
step=0.1,
|
166 |
value=1.0,
|
167 |
label="Top-p",
|
168 |
+
visible=True,
|
169 |
render=False,
|
170 |
),
|
171 |
],
|