ahmedghani commited on
Commit
1f7d78b
·
1 Parent(s): a17832b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -233,12 +233,12 @@ with gr.Blocks() as demo2:
233
  """)
234
 
235
  endpoints_table = gr.Dataframe(
236
- columns=["Endpoint Name", "Revision", "Provider", "Instance Type", "Status", "Min Replica", "Max Replica", "Created At", "Updated At"],
237
- rows=[],
238
- editable=False,
239
  )
240
  info_button = gr.Button(value="Get Info")
241
- info_button.change(get_all_endpoints, inputs=hf_token_input, outputs=endpoints_table)
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
  """