Spaces:
Running
Running
File size: 1,703 Bytes
a9409d4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
import gradio as gr
def get_dialog_box():
return gr.HTML("""
<div style="display: flex; align-items: center; justify-content: center; min-height: 80vh;">
<div style="display: flex; flex-direction: column; align-items: center;">
<!-- Spinner -->
<div class="loader" style="margin-top: 20px;"></div>
<!-- Message -->
<h2 style="color: orange; font-family: trebuchet ms, sans-serif; align-items: center;">The service is not working, please refresh or try again later!</h2>
</div>
</div>
<!-- Spinner CSS -->
<style>
/* HTML: <div class="loader"></div> */
.loader {
width: 120px;
height: 22px;
border-radius: 40px;
color: orange !important;
border: 2px solid;
position: relative;
overflow: hidden;
}
.loader::before {
content: "";
position: absolute;
margin: 2px;
width: 14px;
top: 0;
bottom: 0;
left: -20px;
border-radius: inherit;
background: currentColor;
box-shadow: -10px 0 12px 3px currentColor;
clip-path: polygon(0 5%, 100% 0,100% 100%,0 95%,-30px 50%);
animation: l14 1s infinite linear;
}
@keyframes l14 {
100% {left: calc(100% + 20px)}
}
</style>
""")
|