kheopss commited on
Commit
868ba24
·
verified ·
1 Parent(s): a868541

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -175,7 +175,7 @@ def process(pdf):
175
 
176
  start = time.perf_counter()
177
  try:
178
- response = client.chat_completions.create(**params)
179
  reply = response['choices'][0]['message']['content']
180
  except Exception as e:
181
  print(f"Error during API call: {e}")
 
175
 
176
  start = time.perf_counter()
177
  try:
178
+ response = client.chat.completions.create(**params)
179
  reply = response['choices'][0]['message']['content']
180
  except Exception as e:
181
  print(f"Error during API call: {e}")