itacaiunas commited on
Commit
9da4b53
·
1 Parent(s): 4d48c94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -109,9 +109,9 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
109
  textbox = gr.Textbox(container=False, show_label=False, placeholder='Olá, ChatGEO', scale=7)
110
  model_id = gr.Dropdown(label='LLM',
111
  choices=[
112
- #'mistralai/Mistral-7B-Instruct-v0.1',
113
  'HuggingFaceH4/zephyr-7b-beta',
114
- #'meta-llama/Llama-2-7b-chat-hf'
115
  ],
116
  value='mistralai/Mistral-7B-Instruct-v0.1', scale=3)
117
  submit_button = gr.Button('Submit', variant='primary', scale=1, min_width=0)
@@ -123,12 +123,12 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
123
 
124
  saved_input = gr.State()
125
 
126
- with gr.Accordion(label='Advanced Options', open=False):
127
- system_prompt = gr.Textbox(label='System prompt', value=DEFAULT_SYSTEM_PROMPT, lines=5, interactive=False)
128
- max_new_tokens = gr.Slider(label='Max New Tokens', minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
129
- temperature = gr.Slider(label='Temperatur', minimum=0.1, maximum=4.0, step=0.1, value=0.1)
130
- top_p = gr.Slider(label='Top-P (nucleus sampling)', minimum=0.05, maximum=1.0, step=0.05, value=0.9)
131
- top_k = gr.Slider(label='Top-K', minimum=1, maximum=1000, step=1, value=10)
132
 
133
  textbox.submit(
134
  fn=clear_and_save_textbox,
 
109
  textbox = gr.Textbox(container=False, show_label=False, placeholder='Olá, ChatGEO', scale=7)
110
  model_id = gr.Dropdown(label='LLM',
111
  choices=[
112
+ 'mistralai/Mistral-7B-Instruct-v0.1',
113
  'HuggingFaceH4/zephyr-7b-beta',
114
+ 'meta-llama/Llama-2-7b-chat-hf'
115
  ],
116
  value='mistralai/Mistral-7B-Instruct-v0.1', scale=3)
117
  submit_button = gr.Button('Submit', variant='primary', scale=1, min_width=0)
 
123
 
124
  saved_input = gr.State()
125
 
126
+
127
+ system_prompt = gr.Textbox(label='System prompt', value=DEFAULT_SYSTEM_PROMPT, lines=5, interactive=False)
128
+ max_new_tokens = gr.Slider(label='Max New Tokens', minimum=1, maximum=MAX_MAX_NEW_TOKENS, step=1, value=DEFAULT_MAX_NEW_TOKENS)
129
+ temperature = gr.Slider(label='Temperatur', minimum=0.1, maximum=4.0, step=0.1, value=0.1)
130
+ top_p = gr.Slider(label='Top-P (nucleus sampling)', minimum=0.05, maximum=1.0, step=0.05, value=0.9)
131
+ top_k = gr.Slider(label='Top-K', minimum=1, maximum=1000, step=1, value=10)
132
 
133
  textbox.submit(
134
  fn=clear_and_save_textbox,