legaltextai commited on
Commit
113958a
·
verified ·
1 Parent(s): 86ca541

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ import time
9
  from io import BytesIO
10
 
11
 
12
- anthropic = Anthropic(
13
  api_key="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",
14
  )
15
 
@@ -65,7 +65,7 @@ def extract_text_from_link(url):
65
  def get_summary(text):
66
 
67
  message = client.messages.create(
68
- model = "claude-instant-1.2",
69
  max_tokens_to_sample=2000,
70
  messages=[
71
  {
 
9
  from io import BytesIO
10
 
11
 
12
+ client = anthropic.Anthropic(
13
  api_key="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",
14
  )
15
 
 
65
  def get_summary(text):
66
 
67
  message = client.messages.create(
68
+ model = "claude-3-opus-20240229",
69
  max_tokens_to_sample=2000,
70
  messages=[
71
  {