yangtb24 commited on
Commit
17b87c6
·
verified ·
1 Parent(s): fc75899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def get_credit_summary(api_key):
54
 
55
  for attempt in range(max_retries):
56
  try:
57
- response = requests.get(API_ENDPOINT, headers=headers, timeout=3)
58
  response.raise_for_status()
59
  data = response.json().get("data", {})
60
  total_balance = data.get("totalBalance", 0)
 
54
 
55
  for attempt in range(max_retries):
56
  try:
57
+ response = requests.get(API_ENDPOINT, headers=headers, timeout=2)
58
  response.raise_for_status()
59
  data = response.json().get("data", {})
60
  total_balance = data.get("totalBalance", 0)