lvwerra HF staff commited on
Commit
57659db
1 Parent(s): e3716e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -120,7 +120,7 @@ description = """
120
  <h1> 🦙 CodeLlama Playground</h1>
121
  </div>
122
  <div style="text-align: left;">
123
- <p>This is a demo to generate text and code with the following Code Llama model (7B). Please note that this model is not designed for instruction purposes but for code completion. If you're looking for instruction or want to chat with a fine-tuned model, you can visit the <a href="https://huggingface.co/codellama/">Code Llama Org</a> and select an instruct model.</p>
124
  </div>
125
  """
126
 
@@ -145,7 +145,7 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
145
  with column_1:
146
  temperature = gr.Slider(
147
  label="Temperature",
148
- value=0.2,
149
  minimum=0.0,
150
  maximum=1.0,
151
  step=0.05,
@@ -173,7 +173,7 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
173
  )
174
  repetition_penalty = gr.Slider(
175
  label="Repetition penalty",
176
- value=1.2,
177
  minimum=1.0,
178
  maximum=2.0,
179
  step=0.05,
@@ -181,12 +181,6 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
181
  info="Penalize repeated tokens",
182
  )
183
 
184
- with gr.Group(elem_id="share-btn-container"):
185
- community_icon = gr.HTML(community_icon_html, visible=True)
186
- loading_icon = gr.HTML(loading_icon_html, visible=True)
187
- share_button = gr.Button(
188
- "Share to community", elem_id="share-btn", visible=True
189
- )
190
  gr.Examples(
191
  examples=examples,
192
  inputs=[instruction],
@@ -200,5 +194,4 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
200
  inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty],
201
  outputs=[output],
202
  )
203
- share_button.click(None, [], [], _js=share_js)
204
  demo.queue(concurrency_count=16).launch(debug=True)
 
120
  <h1> 🦙 CodeLlama Playground</h1>
121
  </div>
122
  <div style="text-align: left;">
123
+ <p>This is a demo to generate text and code with the following Code Llama model (7B). Please note that this model is not designed for instruction purposes but for code completion. If you're looking for instruction or want to chat with a fine-tuned model, you can visit the <a href="https://huggingface.co/codellama/">Code Llama Org</a> and select an instruct model. Infilling is currently not supported.</p>
124
  </div>
125
  """
126
 
 
145
  with column_1:
146
  temperature = gr.Slider(
147
  label="Temperature",
148
+ value=0.1,
149
  minimum=0.0,
150
  maximum=1.0,
151
  step=0.05,
 
173
  )
174
  repetition_penalty = gr.Slider(
175
  label="Repetition penalty",
176
+ value=1.05,
177
  minimum=1.0,
178
  maximum=2.0,
179
  step=0.05,
 
181
  info="Penalize repeated tokens",
182
  )
183
 
 
 
 
 
 
 
184
  gr.Examples(
185
  examples=examples,
186
  inputs=[instruction],
 
194
  inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty],
195
  outputs=[output],
196
  )
 
197
  demo.queue(concurrency_count=16).launch(debug=True)