Spaces:
Runtime error
Runtime error
Remove share button
Browse files
app.py
CHANGED
@@ -181,7 +181,6 @@ custom_css = """
|
|
181 |
font-size: 14px;
|
182 |
min-height: 300px;
|
183 |
}
|
184 |
-
|
185 |
"""
|
186 |
|
187 |
with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
@@ -197,7 +196,9 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
197 |
|
198 |
📝 For more details, check out our [blog post]().
|
199 |
|
200 |
-
⚠️ **Intended Use**: this app and its [supporting model](https://huggingface.co/HuggingFaceH4/starchat-alpha) are provided as educational tools to explain large language model fine-tuning; not to serve as replacement for human expertise.
|
|
|
|
|
201 |
|
202 |
⚠️ **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.
|
203 |
"""
|
@@ -276,10 +277,10 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
276 |
interactive=True,
|
277 |
info="The parameter for repetition penalty. 1.0 means no penalty.",
|
278 |
)
|
279 |
-
with gr.Group(elem_id="share-btn-container"):
|
280 |
-
|
281 |
-
|
282 |
-
share_button = gr.Button("Share to community", elem_id="share-btn", visible=True)
|
283 |
with gr.Row():
|
284 |
gr.Examples(
|
285 |
examples=examples,
|
@@ -328,6 +329,6 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
328 |
)
|
329 |
|
330 |
clear_chat_button.click(clear_chat, outputs=[chatbot, history])
|
331 |
-
share_button.click(None, [], [], _js=share_js)
|
332 |
|
333 |
demo.queue(concurrency_count=16).launch(debug=True)
|
|
|
181 |
font-size: 14px;
|
182 |
min-height: 300px;
|
183 |
}
|
|
|
184 |
"""
|
185 |
|
186 |
with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
|
|
|
196 |
|
197 |
📝 For more details, check out our [blog post]().
|
198 |
|
199 |
+
⚠️ **Intended Use**: this app and its [supporting model](https://huggingface.co/HuggingFaceH4/starchat-alpha) are provided as educational tools to explain large language model fine-tuning; not to serve as replacement for human expertise.
|
200 |
+
|
201 |
+
⚠️ **Known Failure Modes**: this alpha version of **StarChat** has not been aligned to human preferences with techniques like RLHF, so the model 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).
|
202 |
|
203 |
⚠️ **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.
|
204 |
"""
|
|
|
277 |
interactive=True,
|
278 |
info="The parameter for repetition penalty. 1.0 means no penalty.",
|
279 |
)
|
280 |
+
# with gr.Group(elem_id="share-btn-container"):
|
281 |
+
# community_icon = gr.HTML(community_icon_html, visible=True)
|
282 |
+
# loading_icon = gr.HTML(loading_icon_html, visible=True)
|
283 |
+
# share_button = gr.Button("Share to community", elem_id="share-btn", visible=True)
|
284 |
with gr.Row():
|
285 |
gr.Examples(
|
286 |
examples=examples,
|
|
|
329 |
)
|
330 |
|
331 |
clear_chat_button.click(clear_chat, outputs=[chatbot, history])
|
332 |
+
# share_button.click(None, [], [], _js=share_js)
|
333 |
|
334 |
demo.queue(concurrency_count=16).launch(debug=True)
|