Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -368,8 +368,8 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
368 |
gr.HTML(title)
|
369 |
|
370 |
with gr.Row():
|
371 |
-
with gr.Column():
|
372 |
-
gr.Image("gradio.png", elem_id="banner-image", show_label=False)
|
373 |
|
374 |
#with gr.Column():
|
375 |
# gr.Markdown(
|
@@ -381,7 +381,16 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
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")
|
387 |
|
|
|
368 |
gr.HTML(title)
|
369 |
|
370 |
with gr.Row():
|
371 |
+
#with gr.Column():
|
372 |
+
#gr.Image("gradio.png", elem_id="banner-image", show_label=False)
|
373 |
|
374 |
#with gr.Column():
|
375 |
# gr.Markdown(
|
|
|
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 |
+
with gr.Column():
|
385 |
+
gr.Markdown(
|
386 |
+
"""![](https://huggingface.co/spaces/codeparrot/chat-playground/resolve/main/gradio.png)
|
387 |
+
StackLLaMa-2 is a 7 billion parameter language model based on [Meta's LLaMA 2 model](https://ai.meta.com/llama/) that has been trained on pairs of questions and answers from [Stack Exchange](https://stackexchange.com) using Direct Preference Optimization (DPO) with the [TRL library](https://github.com/lvwerra/trl). For more details, check out our [blog post](https://huggingface.co/blog/dpo-trl).
|
388 |
+
Type in the box below and click the button to generate answers to your most pressing questions!
|
389 |
+
⚠️ **Intended Use**: this app and its [supporting model](https://huggingface.co/kashif/stack-llama-2) are provided as educational tools to explain RLHF with the TRL library; 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/kashif/stack-llama-2#intended-uses--limitations)
|
390 |
+
|
391 |
+
⚠️ **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:
|
392 |
+
"""
|
393 |
+
)
|
394 |
with gr.Row():
|
395 |
selected_model = gr.Radio(choices=model_names, value=model_names[1], label="Select a model")
|
396 |
|