Cartinoe5930 commited on
Commit
1f75214
·
1 Parent(s): a05d03c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -57,11 +57,10 @@ def warmup(model_list=warmup_test, model_inference_endpoints=inference_endpoint)
57
  headers["Authorization"] += HF_TOKEN
58
 
59
  def query(payload):
60
- response = requests.post(API_URL, headers=headers, json=payload)
61
- return response.json()
62
  try:
63
- _ = query({
64
- "inputs": "Hello."
65
  })
66
  except:
67
  if model == model_list[-1]:
 
57
  headers["Authorization"] += HF_TOKEN
58
 
59
  def query(payload):
60
+ return requests.post(API_URL, headers=headers, json=payload)
 
61
  try:
62
+ query({
63
+ "inputs": "Hello. "
64
  })
65
  except:
66
  if model == model_list[-1]: