Spaces:
Runtime error
Runtime error
default prompt
Browse files
app.py
CHANGED
@@ -194,7 +194,7 @@ with gr.Blocks() as demo:
|
|
194 |
api_key = gr.Textbox(label="Anthropic API Key", elem_id="api_key")
|
195 |
model = gr.Dropdown(label="Model", value="claude-3-opus-20240229", allow_custom_value=True, elem_id="model",
|
196 |
choices=["claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2.1", "claude-2.0", "claude-instant-1.2"])
|
197 |
-
system_prompt = gr.TextArea("You are a helpful AI.", label="System Prompt", lines=3, max_lines=250, elem_id="system_prompt")
|
198 |
temp = gr.Slider(0, 1, label="Temperature", elem_id="temp", value=1)
|
199 |
max_tokens = gr.Slider(1, 4000, label="Max. Tokens", elem_id="max_tokens", value=800)
|
200 |
save_button = gr.Button("Save Settings")
|
|
|
194 |
api_key = gr.Textbox(label="Anthropic API Key", elem_id="api_key")
|
195 |
model = gr.Dropdown(label="Model", value="claude-3-opus-20240229", allow_custom_value=True, elem_id="model",
|
196 |
choices=["claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "claude-2.1", "claude-2.0", "claude-instant-1.2"])
|
197 |
+
system_prompt = gr.TextArea("You are a helpful yet diligent AI assistant. Answer faithfully and factually correct. Respond with 'I do not know' if uncertain.", label="System Prompt", lines=3, max_lines=250, elem_id="system_prompt")
|
198 |
temp = gr.Slider(0, 1, label="Temperature", elem_id="temp", value=1)
|
199 |
max_tokens = gr.Slider(1, 4000, label="Max. Tokens", elem_id="max_tokens", value=800)
|
200 |
save_button = gr.Button("Save Settings")
|