ahmedghani commited on
Commit
28464d2
·
1 Parent(s): b4e172f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -184,8 +184,7 @@ def get_all_endpoints(
184
  if response.status_code == 401:
185
  if method == "info":
186
  return gr.DataFrame.update(
187
- headers = "{ERROR}",
188
- value="Invalid Token OR No Endpoint Found !",
189
  )
190
  else:
191
  return gr.Dropdown.update(
 
184
  if response.status_code == 401:
185
  if method == "info":
186
  return gr.DataFrame.update(
187
+ value=pd.DataFrame({"Error":["Invalid Token -OR- No Endpoint Found !"]}),
 
188
  )
189
  else:
190
  return gr.Dropdown.update(