ahmedghani commited on
Commit
cb6d7eb
·
1 Parent(s): 1aae5f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -173,6 +173,7 @@ def get_all_endpoints(
173
  return "Invalid token"
174
  elif response.status_code == 200:
175
  endpoints_json = response.json()
 
176
  endpoints_df = pd.DataFrame(endpoints_json["items"])
177
  endpoints_df = endpoints_df[["name", "model", "provider", "compute", "status"]]
178
  endpoints_df["model"] = endpoints_df["model"].apply(lambda x: x["repository"] + "@" + x["revision"])
 
173
  return "Invalid token"
174
  elif response.status_code == 200:
175
  endpoints_json = response.json()
176
+ print(endpoints_json)
177
  endpoints_df = pd.DataFrame(endpoints_json["items"])
178
  endpoints_df = endpoints_df[["name", "model", "provider", "compute", "status"]]
179
  endpoints_df["model"] = endpoints_df["model"].apply(lambda x: x["repository"] + "@" + x["revision"])