Spaces:
Runtime error
Runtime error
Commit
·
28464d2
1
Parent(s):
b4e172f
Update app.py
Browse files
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 |
-
|
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(
|