crystalchen commited on
Commit
9378af1
·
verified ·
1 Parent(s): 1c4f613

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -103,8 +103,10 @@ def extract_image_table(image_path):
103
 
104
  ## Extract Table Information
105
  def extract_table_info(image_path):
 
 
106
  # Claude
107
- client = Anthropic(api_key=ANTHROPIC_API_KEY) # Pass the API key here
108
  MODEL_NAME = "claude-3-5-sonnet-20240620"
109
  #Do ascending sort with index of value of "代碼" for all the rows in each section. If there is "X" or "x" in "代碼", treat it as "9".
110
  message_list = [
 
103
 
104
  ## Extract Table Information
105
  def extract_table_info(image_path):
106
+ my_api_key = os.getenv('ANTHROPIC_API_KEY')
107
+
108
  # Claude
109
+ client = Anthropic(api_key=my_api_key) # Pass the API key here
110
  MODEL_NAME = "claude-3-5-sonnet-20240620"
111
  #Do ascending sort with index of value of "代碼" for all the rows in each section. If there is "X" or "x" in "代碼", treat it as "9".
112
  message_list = [