ahmedghani commited on
Commit
3708fca
·
1 Parent(s): 5b45a90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -232,6 +232,8 @@ with gr.Blocks() as interface:
232
  show_label=False,
233
  type="password"
234
  )
 
 
235
  with gr.Tab("Info"):
236
  gr.Markdown("""
237
  ### All Deployed Endpoints
@@ -277,12 +279,12 @@ with gr.Blocks() as interface:
277
  )
278
 
279
  region_selector = gr.Dropdown(
 
 
280
  interactive=True,
281
  show_label=False,
282
  )
283
-
284
- provider_selector.change(update_regions, inputs=provider_selector, outputs=region_selector)
285
-
286
  with gr.Row():
287
  gr.Markdown("""
288
  #### Target Model
@@ -337,7 +339,6 @@ with gr.Blocks() as interface:
337
  interactive=True,
338
  show_label=False,
339
  )
340
- region_selector.change(update_compute_options, inputs=[provider_selector, region_selector], outputs=compute_selector)
341
 
342
  with gr.Row():
343
  gr.Markdown("""
@@ -380,6 +381,9 @@ with gr.Blocks() as interface:
380
  interactive=False
381
  )
382
 
 
 
 
383
  submit_button.click(
384
  submit,
385
  inputs=[
@@ -420,6 +424,8 @@ with gr.Blocks() as interface:
420
  )
421
 
422
  update_region_selector = gr.Dropdown(
 
 
423
  interactive=True,
424
  show_label=False,
425
  )
 
232
  show_label=False,
233
  type="password"
234
  )
235
+
236
+ # Get All Endpoints Info
237
  with gr.Tab("Info"):
238
  gr.Markdown("""
239
  ### All Deployed Endpoints
 
279
  )
280
 
281
  region_selector = gr.Dropdown(
282
+ [],
283
+ value="",
284
  interactive=True,
285
  show_label=False,
286
  )
287
+
 
 
288
  with gr.Row():
289
  gr.Markdown("""
290
  #### Target Model
 
339
  interactive=True,
340
  show_label=False,
341
  )
 
342
 
343
  with gr.Row():
344
  gr.Markdown("""
 
381
  interactive=False
382
  )
383
 
384
+ provider_selector.change(update_regions, inputs=provider_selector, outputs=region_selector)
385
+ region_selector.change(update_compute_options, inputs=[provider_selector, region_selector], outputs=compute_selector)
386
+
387
  submit_button.click(
388
  submit,
389
  inputs=[
 
424
  )
425
 
426
  update_region_selector = gr.Dropdown(
427
+ [],
428
+ value="",
429
  interactive=True,
430
  show_label=False,
431
  )