Spaces:
Runtime error
Runtime error
Commit
Β·
d16c208
1
Parent(s):
3406bb2
Update app.py
Browse files
app.py
CHANGED
|
@@ -231,7 +231,7 @@ with gr.Blocks() as demo2:
|
|
| 231 |
show_label=False,
|
| 232 |
type="password"
|
| 233 |
)
|
| 234 |
-
with gr.
|
| 235 |
gr.Markdown("""
|
| 236 |
### All Deployed Endpoints
|
| 237 |
""")
|
|
@@ -247,11 +247,11 @@ with gr.Blocks() as demo2:
|
|
| 247 |
)
|
| 248 |
|
| 249 |
# Deploy Endpoint
|
| 250 |
-
gr.
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 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.
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 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.
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
gr.Markdown("""
|
| 500 |
#### Endpoint Name
|
| 501 |
""")
|
|
@@ -521,11 +520,11 @@ with gr.Blocks() as demo2:
|
|
| 521 |
)
|
| 522 |
|
| 523 |
# Pricing Table
|
| 524 |
-
gr.
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 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 |
-
|
| 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()
|
|
|
|
|
|