Spaces:
Sleeping
Sleeping
Nils Durner
commited on
Commit
·
ceac283
1
Parent(s):
86b8d48
Opus
Browse files
app.py
CHANGED
@@ -119,12 +119,12 @@ with gr.Blocks() as demo:
|
|
119 |
aws_access = gr.Textbox(label="AWS Access Key", elem_id="aws_access")
|
120 |
aws_secret = gr.Textbox(label="AWS Secret Key", elem_id="aws_secret")
|
121 |
aws_token = gr.Textbox(label="AWS Session Token", elem_id="aws_token")
|
122 |
-
model = gr.Dropdown(label="Model", value="anthropic.claude-3-
|
123 |
-
choices=["anthropic.claude-3-sonnet-20240229-v1:0", "anthropic.claude-3-haiku-20240307-v1:0", "anthropic.claude-v2:1", "anthropic.claude-v2",
|
124 |
"mistral.mistral-7b-instruct-v0:2", "mistral.mixtral-8x7b-instruct-v0:1", "mistral.mistral-large-2402-v1:0"])
|
125 |
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")
|
126 |
-
region = gr.Dropdown(label="Region", value="
|
127 |
-
choices=["eu-central-1", "eu-west-3", "us-east-1", "us-west-1"])
|
128 |
temp = gr.Slider(0, 1, label="Temperature", elem_id="temp", value=1)
|
129 |
max_tokens = gr.Slider(1, 200000, label="Max. Tokens", elem_id="max_tokens", value=4000)
|
130 |
save_button = gr.Button("Save Settings")
|
|
|
119 |
aws_access = gr.Textbox(label="AWS Access Key", elem_id="aws_access")
|
120 |
aws_secret = gr.Textbox(label="AWS Secret Key", elem_id="aws_secret")
|
121 |
aws_token = gr.Textbox(label="AWS Session Token", elem_id="aws_token")
|
122 |
+
model = gr.Dropdown(label="Model", value="anthropic.claude-3-opus-20240229-v1:0", allow_custom_value=True, elem_id="model",
|
123 |
+
choices=["anthropic.claude-3-opus-20240229-v1:0", "anthropic.claude-3-sonnet-20240229-v1:0", "anthropic.claude-3-haiku-20240307-v1:0", "anthropic.claude-v2:1", "anthropic.claude-v2",
|
124 |
"mistral.mistral-7b-instruct-v0:2", "mistral.mixtral-8x7b-instruct-v0:1", "mistral.mistral-large-2402-v1:0"])
|
125 |
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")
|
126 |
+
region = gr.Dropdown(label="Region", value="us-west-2", allow_custom_value=True, elem_id="region",
|
127 |
+
choices=["eu-central-1", "eu-west-3", "us-east-1", "us-west-1", "us-west-2"])
|
128 |
temp = gr.Slider(0, 1, label="Temperature", elem_id="temp", value=1)
|
129 |
max_tokens = gr.Slider(1, 200000, label="Max. Tokens", elem_id="max_tokens", value=4000)
|
130 |
save_button = gr.Button("Save Settings")
|