camillebrl commited on
Commit
cd620d9
·
verified ·
1 Parent(s): 36ab9df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def evaluate_model(task: str, space_url: str):
61
  try:
62
  # Make API call to the space
63
  params = DEFAULT_PARAMS[task]
64
- response = requests.post(api_url, json=params, timeout=2500)
65
  if response.status_code != 200:
66
  return None, None, None, gr.Warning(f"API call failed with status {response.status_code}")
67
 
 
61
  try:
62
  # Make API call to the space
63
  params = DEFAULT_PARAMS[task]
64
+ response = requests.post(api_url, json=params)
65
  if response.status_code != 200:
66
  return None, None, None, gr.Warning(f"API call failed with status {response.status_code}")
67