ahmedghani commited on
Commit
238c5d8
·
1 Parent(s): 0fbe88b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -184,8 +184,8 @@ def get_all_endpoints(
184
  if response.status_code == 401:
185
  if method == "info":
186
  return gr.DataFrame.update(
187
- col_count = 1
188
- headers = ["{ERROR}"]
189
  value=["Invalid Token OR No Endpoint Found !"],
190
  )
191
  else:
@@ -210,7 +210,7 @@ def get_all_endpoints(
210
  }, ignore_index=True)
211
  endpoints_df.columns = ["Endpoint Name", "Model Name @ Revision", "Provider", "Instance Type", "Status", "Min Replica", "Max Replica", "Created At", "Updated At"]
212
  return gr.DataFrame.update(
213
- col_count = (9, "fixed")
214
  value=endpoints_df,
215
  )
216
  else:
 
184
  if response.status_code == 401:
185
  if method == "info":
186
  return gr.DataFrame.update(
187
+ col_count = 1,
188
+ headers = ["{ERROR}"],
189
  value=["Invalid Token OR No Endpoint Found !"],
190
  )
191
  else:
 
210
  }, ignore_index=True)
211
  endpoints_df.columns = ["Endpoint Name", "Model Name @ Revision", "Provider", "Instance Type", "Status", "Min Replica", "Max Replica", "Created At", "Updated At"]
212
  return gr.DataFrame.update(
213
+ col_count = (9, "fixed"),
214
  value=endpoints_df,
215
  )
216
  else: