Spaces:
Runtime error
Runtime error
Commit
·
fb00c8e
1
Parent(s):
43326a0
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,14 +107,14 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
| 107 |
'HuggingFaceH4/zephyr-7b-beta',
|
| 108 |
'meta-llama/Llama-2-7b-chat-hf'
|
| 109 |
],
|
| 110 |
-
value='
|
| 111 |
submit_button = gr.Button('ENVIAR', variant='primary', scale=1, min_width=0)
|
| 112 |
|
| 113 |
saved_input = gr.State()
|
| 114 |
|
| 115 |
|
| 116 |
with gr.Accordion(label='Opções Avançadas', open=False):
|
| 117 |
-
system_prompt = gr.Textbox(label='System prompt', value=DEFAULT_SYSTEM_PROMPT, lines=
|
| 118 |
max_new_tokens = gr.Slider(label='Max New Tokens', minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
|
| 119 |
temperature = gr.Slider(label='Temperatur', minimum=0.1, maximum=4.0, step=0.1, value=0.1)
|
| 120 |
top_p = gr.Slider(label='Top-P (nucleus sampling)', minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|
|
|
|
| 107 |
'HuggingFaceH4/zephyr-7b-beta',
|
| 108 |
'meta-llama/Llama-2-7b-chat-hf'
|
| 109 |
],
|
| 110 |
+
value='mistralai/Mistral-7B-Instruct-v0.1', scale=3)
|
| 111 |
submit_button = gr.Button('ENVIAR', variant='primary', scale=1, min_width=0)
|
| 112 |
|
| 113 |
saved_input = gr.State()
|
| 114 |
|
| 115 |
|
| 116 |
with gr.Accordion(label='Opções Avançadas', open=False):
|
| 117 |
+
system_prompt = gr.Textbox(label='System prompt', value=DEFAULT_SYSTEM_PROMPT, lines=0, interactive=False)
|
| 118 |
max_new_tokens = gr.Slider(label='Max New Tokens', minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
|
| 119 |
temperature = gr.Slider(label='Temperatur', minimum=0.1, maximum=4.0, step=0.1, value=0.1)
|
| 120 |
top_p = gr.Slider(label='Top-P (nucleus sampling)', minimum=0.05, maximum=1.0, step=0.05, value=0.9)
|