Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -273,15 +273,6 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
273 |
label="Model",
|
274 |
info="Choose a model from the list",
|
275 |
)
|
276 |
-
system_prompt = gr.Textbox(
|
277 |
-
value=clients[list(clients.keys())[0]][2],
|
278 |
-
label="System prompt",
|
279 |
-
)
|
280 |
-
version.select(
|
281 |
-
lambda x: (clients[x][2]),
|
282 |
-
inputs=[version],
|
283 |
-
outputs=[system_prompt],
|
284 |
-
)
|
285 |
|
286 |
with gr.Row():
|
287 |
with gr.Column():
|
@@ -342,7 +333,17 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
342 |
interactive=True,
|
343 |
info="Penalize repeated tokens",
|
344 |
)
|
345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
gr_examples = gr.Examples(
|
347 |
examples=[example for client in clients.values() for example in client[3]],
|
348 |
inputs=[instruction],
|
@@ -350,7 +351,6 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
350 |
)
|
351 |
|
352 |
|
353 |
-
|
354 |
submit.click(
|
355 |
generate,
|
356 |
inputs=[instruction, system_prompt, version, temperature, max_new_tokens, top_p, repetition_penalty],
|
|
|
273 |
label="Model",
|
274 |
info="Choose a model from the list",
|
275 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
|
277 |
with gr.Row():
|
278 |
with gr.Column():
|
|
|
333 |
interactive=True,
|
334 |
info="Penalize repeated tokens",
|
335 |
)
|
336 |
+
with gr.Accordion("Prompt", open=False):
|
337 |
+
system_prompt = gr.Textbox(
|
338 |
+
value=clients[list(clients.keys())[0]][2],
|
339 |
+
label="System prompt",
|
340 |
+
)
|
341 |
+
version.select(
|
342 |
+
lambda x: (clients[x][2]),
|
343 |
+
inputs=[version],
|
344 |
+
outputs=[system_prompt],
|
345 |
+
)
|
346 |
+
|
347 |
gr_examples = gr.Examples(
|
348 |
examples=[example for client in clients.values() for example in client[3]],
|
349 |
inputs=[instruction],
|
|
|
351 |
)
|
352 |
|
353 |
|
|
|
354 |
submit.click(
|
355 |
generate,
|
356 |
inputs=[instruction, system_prompt, version, temperature, max_new_tokens, top_p, repetition_penalty],
|