Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,62 @@ def infer(prompt):
|
|
| 18 |
css = """
|
| 19 |
#col-container {max-width: 510px; margin-left: auto; margin-right: auto;}
|
| 20 |
a {text-decoration-line: underline; font-weight: 600;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"""
|
| 22 |
|
| 23 |
with gr.Blocks(css=css) as demo:
|
|
|
|
| 18 |
css = """
|
| 19 |
#col-container {max-width: 510px; margin-left: auto; margin-right: auto;}
|
| 20 |
a {text-decoration-line: underline; font-weight: 600;}
|
| 21 |
+
.animate-spin {
|
| 22 |
+
animation: spin 1s linear infinite;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
@keyframes spin {
|
| 26 |
+
from {
|
| 27 |
+
transform: rotate(0deg);
|
| 28 |
+
}
|
| 29 |
+
to {
|
| 30 |
+
transform: rotate(360deg);
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
#share-btn-container {
|
| 35 |
+
display: flex;
|
| 36 |
+
padding-left: 0.5rem !important;
|
| 37 |
+
padding-right: 0.5rem !important;
|
| 38 |
+
background-color: #000000;
|
| 39 |
+
justify-content: center;
|
| 40 |
+
align-items: center;
|
| 41 |
+
border-radius: 9999px !important;
|
| 42 |
+
max-width: 13rem;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
#share-btn-container:hover {
|
| 46 |
+
background-color: #060606;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
#share-btn {
|
| 50 |
+
all: initial;
|
| 51 |
+
color: #ffffff;
|
| 52 |
+
font-weight: 600;
|
| 53 |
+
cursor:pointer;
|
| 54 |
+
font-family: 'IBM Plex Sans', sans-serif;
|
| 55 |
+
margin-left: 0.5rem !important;
|
| 56 |
+
padding-top: 0.5rem !important;
|
| 57 |
+
padding-bottom: 0.5rem !important;
|
| 58 |
+
right:0;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
#share-btn * {
|
| 62 |
+
all: unset;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
#share-btn-container div:nth-child(-n+2){
|
| 66 |
+
width: auto !important;
|
| 67 |
+
min-height: 0px !important;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
#share-btn-container .wrap {
|
| 71 |
+
display: none !important;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
#share-btn-container.hidden {
|
| 75 |
+
display: none!important;
|
| 76 |
+
}
|
| 77 |
"""
|
| 78 |
|
| 79 |
with gr.Blocks(css=css) as demo:
|