Spaces:
Runtime error
Runtime error
Commit
·
1f7d78b
1
Parent(s):
a17832b
Update app.py
Browse files
app.py
CHANGED
@@ -233,12 +233,12 @@ with gr.Blocks() as demo2:
|
|
233 |
""")
|
234 |
|
235 |
endpoints_table = gr.Dataframe(
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
)
|
240 |
info_button = gr.Button(value="Get Info")
|
241 |
-
info_button.
|
242 |
|
243 |
gr.Markdown(
|
244 |
"""
|
|
|
233 |
""")
|
234 |
|
235 |
endpoints_table = gr.Dataframe(
|
236 |
+
headers=["Endpoint Name", "Revision", "Provider", "Instance Type", "Status", "Min Replica", "Max Replica", "Created At", "Updated At"],
|
237 |
+
col_count=(9, "fixed"),
|
238 |
+
value=[[], [], [], [], [], [], [], [], []],
|
239 |
)
|
240 |
info_button = gr.Button(value="Get Info")
|
241 |
+
info_button.click(get_all_endpoints, inputs=hf_token_input, outputs=endpoints_table)
|
242 |
|
243 |
gr.Markdown(
|
244 |
"""
|