ArmelR commited on
Commit
b8310dc
1 Parent(s): 50136b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -351,7 +351,7 @@ def retry_last_answer(
351
  do_save,
352
  )
353
 
354
- title = """<h1 align="center">⭐ Gradio Playground 💬</h1>"""
355
  custom_css = """
356
  #banner-image {
357
  display: block;
@@ -370,23 +370,17 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
370
  with gr.Row():
371
  with gr.Column():
372
  gr.Image("thumbnail.png", elem_id="banner-image", show_label=False)
373
- with gr.Column():
374
- gr.Markdown(
375
- """
376
- 💻 This demo showcases a series of **[StarChat](https://huggingface.co/models?search=huggingfaceh4/starchat)** language models, which are fine-tuned versions of the StarCoder family to act as helpful coding assistants. The base model has 16B parameters and was pretrained on one trillion tokens sourced from 80+ programming languages, GitHub issues, Git commits, and Jupyter notebooks (all permissively licensed).
377
- 📝 For more details, check out our [blog post](https://huggingface.co/blog/starchat-alpha).
378
- ⚠️ **Intended Use**: this app and its [supporting models](https://huggingface.co/models?search=huggingfaceh4/starchat) are provided as educational tools to explain large language model fine-tuning; not to serve as replacement for human expertise.
379
- ⚠️ **Known Failure Modes**: the alpha and beta version of **StarChat** have not been aligned to human preferences with techniques like RLHF, so they can produce problematic outputs (especially when prompted to do so). Since the base model was pretrained on a large corpus of code, it may produce code snippets that are syntactically valid but semantically incorrect. For example, it may produce code that does not compile or that produces incorrect results. It may also produce code that is vulnerable to security exploits. We have observed the model also has a tendency to produce false URLs which should be carefully inspected before clicking. For more details on the model's limitations in terms of factuality and biases, see the [model card](https://huggingface.co/HuggingFaceH4/starchat-alpha#bias-risks-and-limitations).
380
- ⚠️ **Data Collection**: by default, we are collecting the prompts entered in this app to further improve and evaluate the models. Do **NOT** share any personal or sensitive information while using the app! You can opt out of this data collection by removing the checkbox below.
381
- """
382
- )
383
-
384
- with gr.Row():
385
- do_save = gr.Checkbox(
386
- value=False,
387
- label="Store data",
388
- info="You agree to the storage of your prompt and generated text for research and development purposes:",
389
- )
390
 
391
  with gr.Row():
392
  selected_model = gr.Radio(choices=model_names, value=model_names[1], label="Select a model")
@@ -460,6 +454,12 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
460
  interactive=True,
461
  info="The parameter for repetition penalty. 1.0 means no penalty.",
462
  )
 
 
 
 
 
 
463
  # with gr.Group(elem_id="share-btn-container"):
464
  # community_icon = gr.HTML(community_icon_html, visible=True)
465
  # loading_icon = gr.HTML(loading_icon_html, visible=True)
 
351
  do_save,
352
  )
353
 
354
+ title = """<h1 align="center">Chat with Gradio 💬</h1>"""
355
  custom_css = """
356
  #banner-image {
357
  display: block;
 
370
  with gr.Row():
371
  with gr.Column():
372
  gr.Image("thumbnail.png", elem_id="banner-image", show_label=False)
373
+
374
+ #with gr.Column():
375
+ # gr.Markdown(
376
+ # """
377
+ # 💻 This demo showcases a series of **[StarChat](https://huggingface.co/models?search=huggingfaceh4/starchat)** language models, which are fine-tuned versions of the StarCoder family to act as helpful coding assistants. The base model has 16B parameters and was pretrained on one trillion tokens sourced from 80+ programming languages, GitHub issues, Git commits, and Jupyter notebooks (all permissively licensed).
378
+ # 📝 For more details, check out our [blog post](https://huggingface.co/blog/starchat-alpha).
379
+ # ⚠️ **Intended Use**: this app and its [supporting models](https://huggingface.co/models?search=huggingfaceh4/starchat) are provided as educational tools to explain large language model fine-tuning; not to serve as replacement for human expertise.
380
+ # ⚠️ **Known Failure Modes**: the alpha and beta version of **StarChat** have not been aligned to human preferences with techniques like RLHF, so they can produce problematic outputs (especially when prompted to do so). Since the base model was pretrained on a large corpus of code, it may produce code snippets that are syntactically valid but semantically incorrect. For example, it may produce code that does not compile or that produces incorrect results. It may also produce code that is vulnerable to security exploits. We have observed the model also has a tendency to produce false URLs which should be carefully inspected before clicking. For more details on the model's limitations in terms of factuality and biases, see the [model card](https://huggingface.co/HuggingFaceH4/starchat-alpha#bias-risks-and-limitations).
381
+ # ⚠️ **Data Collection**: by default, we are collecting the prompts entered in this app to further improve and evaluate the models. Do **NOT** share any personal or sensitive information while using the app! You can opt out of this data collection by removing the checkbox below.
382
+ # """
383
+ # )
 
 
 
 
 
 
384
 
385
  with gr.Row():
386
  selected_model = gr.Radio(choices=model_names, value=model_names[1], label="Select a model")
 
454
  interactive=True,
455
  info="The parameter for repetition penalty. 1.0 means no penalty.",
456
  )
457
+ with gr.Row():
458
+ do_save = gr.Checkbox(
459
+ value=False,
460
+ label="Store data",
461
+ info="You agree to the storage of your prompt and generated text for research and development purposes:",
462
+ )
463
  # with gr.Group(elem_id="share-btn-container"):
464
  # community_icon = gr.HTML(community_icon_html, visible=True)
465
  # loading_icon = gr.HTML(loading_icon_html, visible=True)