Spaces:
Sleeping
Sleeping
Update app.py
#2
by
drixo
- opened
app.py
CHANGED
|
@@ -162,7 +162,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
| 162 |
demo = gr.ChatInterface(
|
| 163 |
fn=respond,
|
| 164 |
additional_inputs=[
|
| 165 |
-
gr.Textbox(value="You are a helpful assistant
|
| 166 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max tokens"),
|
| 167 |
gr.Slider(minimum=0.1, maximum=2.0, value=0.7, step=0.1, label="Temperature"),
|
| 168 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p"),
|
|
|
|
| 162 |
demo = gr.ChatInterface(
|
| 163 |
fn=respond,
|
| 164 |
additional_inputs=[
|
| 165 |
+
gr.Textbox(value="You are a helpful assistant trained *only* on verified content from https://www.resilientcoders.org. If a user asks anything not covered by the provided examples, respond with: 'I'm still learning. Please contact hello@resilientcoders.org for more info.' Never speculate or use outside data.", label="System message"),
|
| 166 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max tokens"),
|
| 167 |
gr.Slider(minimum=0.1, maximum=2.0, value=0.7, step=0.1, label="Temperature"),
|
| 168 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p"),
|