Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,18 +108,21 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
108 |
StackLLaMa is a 7 billion parameter language model that has been trained on pairs of questions and answers from [Stack Exchange](https://stackexchange.com) using Reinforcement Learning from Human Feedback with the [TRL library](https://github.com/lvwerra/trl). For more details, check out our [blog post](https://huggingface.co/blog/stackllama).
|
109 |
|
110 |
Type in the box below and click the button to generate answers to your most pressing questions!
|
|
|
|
|
|
|
|
|
111 |
"""
|
112 |
)
|
113 |
with gr.Row():
|
114 |
with gr.Column(scale=3):
|
115 |
-
|
116 |
-
instruction = gr.Textbox(placeholder="Enter your question here", label="Question", elem_id="q-input")
|
117 |
-
with gr.Column(scale=1):
|
118 |
-
do_save = gr.Checkbox(
|
119 |
value=True,
|
120 |
label="Store data",
|
121 |
-
info="You consent to the storage of your prompt and generated text for research and development purposes."
|
122 |
-
|
|
|
|
|
123 |
with gr.Box():
|
124 |
gr.Markdown("**Answer**")
|
125 |
output = gr.Markdown(elem_id="q-output")
|
|
|
108 |
StackLLaMa is a 7 billion parameter language model that has been trained on pairs of questions and answers from [Stack Exchange](https://stackexchange.com) using Reinforcement Learning from Human Feedback with the [TRL library](https://github.com/lvwerra/trl). For more details, check out our [blog post](https://huggingface.co/blog/stackllama).
|
109 |
|
110 |
Type in the box below and click the button to generate answers to your most pressing questions!
|
111 |
+
|
112 |
+
⚠️ **Factuality**: information provided by the model can be non factual and this an educational model to explain RLFH with the TRL library.
|
113 |
+
|
114 |
+
⚠️ **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:
|
115 |
"""
|
116 |
)
|
117 |
with gr.Row():
|
118 |
with gr.Column(scale=3):
|
119 |
+
do_save = gr.Checkbox(
|
|
|
|
|
|
|
120 |
value=True,
|
121 |
label="Store data",
|
122 |
+
info="You consent to the storage of your prompt and generated text for research and development purposes.")
|
123 |
+
instruction = gr.Textbox(placeholder="Enter your question here", label="Question", elem_id="q-input")
|
124 |
+
|
125 |
+
|
126 |
with gr.Box():
|
127 |
gr.Markdown("**Answer**")
|
128 |
output = gr.Markdown(elem_id="q-output")
|