Spaces:
Runtime error
Runtime error
Commit
·
b4e172f
1
Parent(s):
238c5d8
Update app.py
Browse files
app.py
CHANGED
@@ -184,9 +184,8 @@ def get_all_endpoints(
|
|
184 |
if response.status_code == 401:
|
185 |
if method == "info":
|
186 |
return gr.DataFrame.update(
|
187 |
-
|
188 |
-
|
189 |
-
value=["Invalid Token OR No Endpoint Found !"],
|
190 |
)
|
191 |
else:
|
192 |
return gr.Dropdown.update(
|
@@ -210,7 +209,6 @@ 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 |
+
headers = "{ERROR}",
|
188 |
+
value="Invalid Token OR No Endpoint Found !",
|
|
|
189 |
)
|
190 |
else:
|
191 |
return gr.Dropdown.update(
|
|
|
209 |
}, ignore_index=True)
|
210 |
endpoints_df.columns = ["Endpoint Name", "Model Name @ Revision", "Provider", "Instance Type", "Status", "Min Replica", "Max Replica", "Created At", "Updated At"]
|
211 |
return gr.DataFrame.update(
|
|
|
212 |
value=endpoints_df,
|
213 |
)
|
214 |
else:
|