Spaces:
Runtime error
Runtime error
fix model id
Browse files
app.py
CHANGED
@@ -201,7 +201,7 @@ with gr.Blocks(delete_cache=(86400, 86400)) as demo:
|
|
201 |
aws_access = gr.Textbox(label="AWS Access Key", elem_id="aws_access")
|
202 |
aws_secret = gr.Textbox(label="AWS Secret Key", elem_id="aws_secret")
|
203 |
aws_token = gr.Textbox(label="AWS Session Token", elem_id="aws_token")
|
204 |
-
model = gr.Dropdown(label="Model", value="anthropic.claude-3-5-sonnet-
|
205 |
choices=["anthropic.claude-3-5-sonnet-20240620-v1:0", "anthropic.claude-3-opus-20240229-v1:0", "meta.llama3-1-405b-instruct-v1:0", "anthropic.claude-3-sonnet-20240229-v1:0", "anthropic.claude-3-haiku-20240307-v1:0", "anthropic.claude-v2:1", "anthropic.claude-v2",
|
206 |
"mistral.mistral-7b-instruct-v0:2", "mistral.mixtral-8x7b-instruct-v0:1", "mistral.mistral-large-2407-v1:0", "anthropic.claude-3-5-sonnet-20241022-v2:0"])
|
207 |
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")
|
|
|
201 |
aws_access = gr.Textbox(label="AWS Access Key", elem_id="aws_access")
|
202 |
aws_secret = gr.Textbox(label="AWS Secret Key", elem_id="aws_secret")
|
203 |
aws_token = gr.Textbox(label="AWS Session Token", elem_id="aws_token")
|
204 |
+
model = gr.Dropdown(label="Model", value="anthropic.claude-3-5-sonnet-20241022-v2:0", allow_custom_value=True, elem_id="model",
|
205 |
choices=["anthropic.claude-3-5-sonnet-20240620-v1:0", "anthropic.claude-3-opus-20240229-v1:0", "meta.llama3-1-405b-instruct-v1:0", "anthropic.claude-3-sonnet-20240229-v1:0", "anthropic.claude-3-haiku-20240307-v1:0", "anthropic.claude-v2:1", "anthropic.claude-v2",
|
206 |
"mistral.mistral-7b-instruct-v0:2", "mistral.mixtral-8x7b-instruct-v0:1", "mistral.mistral-large-2407-v1:0", "anthropic.claude-3-5-sonnet-20241022-v2:0"])
|
207 |
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")
|