lvwerra HF staff commited on
Commit
caa9308
1 Parent(s): 35ac234

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -365,7 +365,7 @@ custom_css = """
365
  """
366
 
367
  with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
368
- gr.HTML(title)
369
 
370
  with gr.Row():
371
  #with gr.Column():
@@ -382,16 +382,7 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
382
  # """
383
  # )
384
  with gr.Column():
385
- gr.Markdown(
386
- """![](https://huggingface.co/spaces/codeparrot/gradio-playground/resolve/main/chat_with_gradio.png)
387
- Chat-with-Gradio is a 15.5 billion parameter language model based on [BigCode's StarCoderplus model](https://huggingface.co/bigcode/starcoderplus) that has been trained on a wide variety of data sources. It includes the source code and issues from [gradio's Github repository](https://github.com/gradio-app/gradio) and data from [Hugging Face's spaces](https://huggingface.co/spaces). Its training also involves instruction fine-tuning with a processed subset of [OpenAssistant's oasst1 dataset](https://huggingface.co/datasets/HuggingFaceH4/oasst1_en).
388
-
389
- Type in the box below and click the button to generate answers to your most pressing questions!
390
- ⚠️ **Intended Use**: this app and its [supporting model](https://huggingface.co/bigcode/starcoderplus) are provided as tools to provide assistance when using gradio ; not to serve as replacement for human expertise. For more details on the model's limitations in terms of factuality and biases, see the [model card.](https://huggingface.co/bigcode/starcoderplus#intended-uses--limitations)
391
-
392
- ⚠️ **Data Collection**: by default, we are collecting the prompts entered in this app to further improve and evaluate the model. 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:
393
- """
394
- )
395
  with gr.Row():
396
  selected_model = gr.Radio(choices=model_names, value=model_names[1], label="Select a model")
397
 
@@ -482,6 +473,14 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
482
  fn=process_example,
483
  outputs=[output],
484
  )
 
 
 
 
 
 
 
 
485
 
486
  history = gr.State([])
487
  RETRY_FLAG = gr.Checkbox(value=False, visible=False)
 
365
  """
366
 
367
  with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
368
+ #gr.HTML(title)
369
 
370
  with gr.Row():
371
  #with gr.Column():
 
382
  # """
383
  # )
384
  with gr.Column():
385
+ gr.Markdown("""<img src="https://huggingface.co/spaces/codeparrot/gradio-playground/resolve/main/chat_with_gradio.png" height="200">""")
 
 
 
 
 
 
 
 
 
386
  with gr.Row():
387
  selected_model = gr.Radio(choices=model_names, value=model_names[1], label="Select a model")
388
 
 
473
  fn=process_example,
474
  outputs=[output],
475
  )
476
+ with gr.Row():
477
+ gr.Markdown(
478
+ """Chat-with-Gradio is a 15.5 billion parameter language model based on [BigCode's StarCoderplus model](https://huggingface.co/bigcode/starcoderplus) that has been trained on a wide variety of data sources. It includes the source code and issues from [gradio's Github repository](https://github.com/gradio-app/gradio) and data from [Hugging Face's spaces](https://huggingface.co/spaces). Its training also involves instruction fine-tuning with a processed subset of [OpenAssistant's oasst1 dataset](https://huggingface.co/datasets/HuggingFaceH4/oasst1_en).
479
+
480
+ Type in the box below and click the button to generate answers to your most pressing questions!
481
+ ⚠️ **Intended Use**: this app and its [supporting model](https://huggingface.co/bigcode/starcoderplus) are provided as tools to provide assistance when using gradio ; not to serve as replacement for human expertise. For more details on the model's limitations in terms of factuality and biases, see the [model card.](https://huggingface.co/bigcode/starcoderplus#intended-uses--limitations)
482
+
483
+ ⚠️ **Data Collection**: by default, we are collecting the prompts entered in this app to further improve and evaluate the model. 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:)""")
484
 
485
  history = gr.State([])
486
  RETRY_FLAG = gr.Checkbox(value=False, visible=False)