ahmedghani commited on
Commit
d16c208
Β·
1 Parent(s): 3406bb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -23
app.py CHANGED
@@ -231,7 +231,7 @@ with gr.Blocks() as demo2:
231
  show_label=False,
232
  type="password"
233
  )
234
- with gr.Column():
235
  gr.Markdown("""
236
  ### All Deployed Endpoints
237
  """)
@@ -247,11 +247,11 @@ with gr.Blocks() as demo2:
247
  )
248
 
249
  # Deploy Endpoint
250
- gr.Markdown(
251
- """
252
- ### <br><center style="color:green">(Deploy Your Model on πŸ€— Endpoint)</center>
253
- """)
254
- with gr.Column():
255
  gr.Markdown("""
256
  #### Endpoint Name
257
  """)
@@ -374,7 +374,6 @@ with gr.Blocks() as demo2:
374
  interactive=True,
375
  show_label=False,
376
  )
377
-
378
  submit_button = gr.Button(
379
  value="Submit",
380
  )
@@ -402,10 +401,10 @@ with gr.Blocks() as demo2:
402
  outputs=status_txt)
403
 
404
  # Update Endpoint
405
- gr.Markdown("""
406
- ### <br><center style="color:green">(Update πŸ” Endpoint)</center>
407
- """)
408
- with gr.Column():
409
  update_providers = avaliable_providers()
410
  with gr.Row():
411
  gr.Markdown("""
@@ -492,10 +491,10 @@ with gr.Blocks() as demo2:
492
  )
493
 
494
  # Delete Endpoint
495
- gr.Markdown("""
496
- ### <br><center style="color:green">(Delete πŸ—‘οΈ Endpoint)</center>
497
- """)
498
- with gr.Column():
499
  gr.Markdown("""
500
  #### Endpoint Name
501
  """)
@@ -521,11 +520,11 @@ with gr.Blocks() as demo2:
521
  )
522
 
523
  # Pricing Table
524
- gr.Markdown("""
525
- ### <br><center style="color:green">(Instance Pricing Table)</center>
526
- #### Pricing Table(CPU) - 2023/2/22
527
- """)
528
- with gr.Column():
529
  gr.Dataframe(
530
  headers=["provider", "size", "$/h", "vCPUs", "Memory", "Architecture"],
531
  datatype=["str", "str", "str", "number", "str", "str"],
@@ -562,6 +561,4 @@ with gr.Blocks() as demo2:
562
  ]
563
  )
564
 
565
- gr.TabbedInterface(
566
- [demo2], ["HF Endpoint Tool"]
567
- ).launch(enable_queue=True)
 
231
  show_label=False,
232
  type="password"
233
  )
234
+ with gr.Tab("Info"):
235
  gr.Markdown("""
236
  ### All Deployed Endpoints
237
  """)
 
247
  )
248
 
249
  # Deploy Endpoint
250
+ with gr.Tab("Deploy Endpoint"):
251
+ gr.Markdown(
252
+ """
253
+ ### <br><center style="color:green">(Deploy Your Model on πŸ€— Endpoint)</center>
254
+ """)
255
  gr.Markdown("""
256
  #### Endpoint Name
257
  """)
 
374
  interactive=True,
375
  show_label=False,
376
  )
 
377
  submit_button = gr.Button(
378
  value="Submit",
379
  )
 
401
  outputs=status_txt)
402
 
403
  # Update Endpoint
404
+ with gr.Tab("Update Endpoint"):
405
+ gr.Markdown("""
406
+ ### <br><center style="color:green">(Update πŸ” Endpoint)</center>
407
+ """)
408
  update_providers = avaliable_providers()
409
  with gr.Row():
410
  gr.Markdown("""
 
491
  )
492
 
493
  # Delete Endpoint
494
+ with gr.Tab("Delete Endpoint"):
495
+ gr.Markdown("""
496
+ ### <br><center style="color:green">(Delete πŸ—‘οΈ Endpoint)</center>
497
+ """)
498
  gr.Markdown("""
499
  #### Endpoint Name
500
  """)
 
520
  )
521
 
522
  # Pricing Table
523
+ with gr.Tab("Pricing Table"):
524
+ gr.Markdown("""
525
+ ### <br><center style="color:green">(Instance Pricing Table)</center>
526
+ #### Pricing Table(CPU) - 2023/2/22
527
+ """)
528
  gr.Dataframe(
529
  headers=["provider", "size", "$/h", "vCPUs", "Memory", "Architecture"],
530
  datatype=["str", "str", "str", "number", "str", "str"],
 
561
  ]
562
  )
563
 
564
+ demo2.launch()