Spaces:
Runtime error
Runtime error
.tabs.svelte-710i53 { | |
margin-top: 0 | |
} | |
.py-6 { | |
padding-top: 2.5rem | |
} | |
.small-button { | |
min-width: 0 ; | |
max-width: 171px; | |
height: 39.594px; | |
align-self: end; | |
} | |
.refresh-button { | |
max-width: 4.4em; | |
min-width: 2.2em ; | |
height: 39.594px; | |
align-self: end; | |
line-height: 1em; | |
border-radius: 0.5em; | |
flex: none; | |
} | |
.refresh-button-small { | |
max-width: 2.2em; | |
} | |
.button_nowrap { | |
white-space: nowrap; | |
} | |
#slim-column { | |
flex: none ; | |
min-width: 0 ; | |
} | |
.slim-dropdown { | |
background-color: transparent ; | |
border: none ; | |
padding: 0 ; | |
} | |
#download-label, #upload-label { | |
min-height: 0 | |
} | |
.dark svg { | |
fill: white; | |
} | |
.dark a { | |
color: white ; | |
} | |
ol li p, ul li p { | |
display: inline-block; | |
} | |
#chat-tab, #default-tab, #notebook-tab, #parameters, #chat-settings, #lora, #training-tab, #model-tab, #session-tab { | |
border: 0; | |
} | |
.gradio-container-3-18-0 .prose * h1, h2, h3, h4 { | |
color: white; | |
} | |
.gradio-container { | |
max-width: 100% ; | |
padding-top: 0 ; | |
} | |
#extensions { | |
margin-top: 5px; | |
margin-bottom: 35px; | |
} | |
.extension-tab { | |
border: 0 ; | |
} | |
span.math.inline { | |
font-size: 27px; | |
vertical-align: baseline ; | |
} | |
div.svelte-15lo0d8 > *, div.svelte-15lo0d8 > .form > * { | |
flex-wrap: nowrap; | |
} | |
.header_bar { | |
background-color: #f7f7f7; | |
margin-bottom: 20px; | |
display: inline ; | |
overflow-x: scroll; | |
} | |
.dark .header_bar { | |
border: none ; | |
background-color: #8080802b; | |
} | |
.header_bar button.selected { | |
border-radius: 0; | |
} | |
.textbox_default textarea { | |
height: calc(100dvh - 280px); | |
} | |
.textbox_default_output textarea { | |
height: calc(100dvh - 190px); | |
} | |
.textbox textarea { | |
height: calc(100dvh - 241px); | |
} | |
.textbox_logits textarea { | |
height: calc(100dvh - 241px); | |
} | |
.textbox_logits_notebook textarea { | |
height: calc(100dvh - 292px); | |
} | |
.textbox_default textarea, | |
.textbox_default_output textarea, | |
.textbox_logits textarea, | |
.textbox_logits_notebook textarea, | |
.textbox textarea | |
{ | |
font-size: 16px ; | |
color: #46464A ; | |
} | |
.dark textarea { | |
color: #efefef ; | |
} | |
@media screen and (max-width: 711px) { | |
.textbox_default textarea { | |
height: calc(100dvh - 271px); | |
} | |
div .default-token-counter { | |
top: calc( 0.5 * (100dvh - 245px) ) ; | |
} | |
} | |
/* Hide the gradio footer*/ | |
footer { | |
display: none ; | |
} | |
button { | |
font-size: 14px ; | |
} | |
.file-saver { | |
position: fixed ; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); /* center horizontally */ | |
max-width: 500px; | |
background-color: var(--input-background-fill); | |
border: 2px solid black ; | |
z-index: 1000; | |
} | |
.dark .file-saver { | |
border: 2px solid white ; | |
} | |
.checkboxgroup-table label { | |
background: none ; | |
padding: 0 ; | |
border: 0 ; | |
} | |
.checkboxgroup-table div { | |
display: grid ; | |
} | |
.markdown ul ol { | |
font-size: 100% ; | |
} | |
.pretty_scrollbar::-webkit-scrollbar { | |
width: 5px; | |
} | |
.pretty_scrollbar::-webkit-scrollbar-track { | |
background: transparent; | |
} | |
.pretty_scrollbar::-webkit-scrollbar-thumb, | |
.pretty_scrollbar::-webkit-scrollbar-thumb:hover { | |
background: #c5c5d2; | |
} | |
.dark .pretty_scrollbar::-webkit-scrollbar-thumb, | |
.dark .pretty_scrollbar::-webkit-scrollbar-thumb:hover { | |
background: #374151; | |
} | |
.pretty_scrollbar::-webkit-resizer { | |
background: #c5c5d2; | |
} | |
.dark .pretty_scrollbar::-webkit-resizer { | |
background: #374151; | |
} | |
audio { | |
max-width: 100%; | |
} | |
/* Copied from https://github.com/AUTOMATIC1111/stable-diffusion-webui */ | |
.token-counter { | |
position: absolute ; | |
top: calc( 0.5 * (100dvh - 215px) ) ; | |
right: 2px; | |
z-index: 100; | |
background: var(--input-background-fill) ; | |
min-height: 0 ; | |
} | |
.default-token-counter { | |
top: calc( 0.5 * (100dvh - 255px) ) ; | |
} | |
.token-counter span { | |
padding: 1px; | |
box-shadow: 0 0 0 0.3em rgba(192,192,192,0.15), inset 0 0 0.6em rgba(192,192,192,0.075); | |
border: 2px solid rgba(192,192,192,0.4) ; | |
border-radius: 0.4em; | |
} | |
.no-background { | |
background: var(--background-fill-primary) ; | |
padding: 0px ; | |
} | |
/*****************************************************/ | |
/*************** Chat UI declarations ****************/ | |
/*****************************************************/ | |
.h-\[40vh\], .wrap.svelte-byatnx.svelte-byatnx.svelte-byatnx { | |
height: 66.67vh | |
} | |
.gradio-container { | |
margin-left: auto ; | |
margin-right: auto ; | |
} | |
.w-screen { | |
width: unset | |
} | |
div.svelte-362y77>*, div.svelte-362y77>.form>* { | |
flex-wrap: nowrap | |
} | |
.pending.svelte-1ed2p3z { | |
opacity: 1; | |
} | |
.wrap.svelte-6roggh.svelte-6roggh { | |
max-height: 92.5%; | |
} | |
/* This is for the microphone button in the whisper extension */ | |
.sm.svelte-1ipelgc { | |
width: 100%; | |
} | |
#chat-tab button, #notebook-tab button, #default-tab button { | |
min-width: 0 ; | |
} | |
#chat-tab > :first-child, #extensions { | |
max-width: 800px; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
@media screen and (max-width: 688px) { | |
#chat-tab { | |
padding: 0px; | |
} | |
.chat-parent { | |
height: calc(100dvh - 262px) ; | |
} | |
.bigchat { | |
height: calc(100dvh - 180px) ; | |
} | |
} | |
.chat { | |
margin-left: auto; | |
margin-right: auto; | |
max-width: 800px; | |
height: 100%; | |
overflow-y: auto; | |
padding-right: 15px; | |
display: flex; | |
flex-direction: column; | |
word-break: break-word; | |
overflow-wrap: anywhere; | |
padding-top: 6px; | |
} | |
.chat-parent { | |
height: calc(100dvh - 272px); | |
overflow: auto ; | |
} | |
.bigchat { | |
height: calc(100dvh - 200px); | |
} | |
.chat > .messages { | |
display: flex; | |
flex-direction: column; | |
} | |
.chat .message:last-child { | |
margin-bottom: 0px ; | |
padding-bottom: 0px ; | |
} | |
.message-body li { | |
margin-top: 0 ; | |
margin-bottom: 0 ; | |
} | |
.message-body li > p { | |
display: inline ; | |
} | |
.message-body ul, .message-body ol { | |
font-size: 15px ; | |
} | |
.message-body ul { | |
list-style-type: disc ; | |
} | |
.message-body pre { | |
margin-bottom: 1.25em ; | |
} | |
.message-body code { | |
white-space: pre-wrap ; | |
word-wrap: break-word ; | |
} | |
.message-body :not(pre) > code { | |
white-space: normal ; | |
} | |
#chat-input { | |
padding: 0; | |
padding-top: 18px; | |
background: var(--background-fill-primary); | |
border: none; | |
} | |
#chat-input textarea:focus { | |
box-shadow: none ; | |
} | |
@media print { | |
body { | |
visibility: hidden; | |
} | |
.chat { | |
visibility: visible; | |
position: absolute; | |
left: 0; | |
top: 0; | |
max-width: unset; | |
max-height: unset; | |
width: 100%; | |
overflow-y: visible; | |
} | |
.message { | |
break-inside: avoid; | |
} | |
.gradio-container { | |
overflow: visible; | |
} | |
.tab-nav { | |
display: none ; | |
} | |
#chat-tab > :first-child { | |
max-width: unset; | |
} | |
} | |
#show-controls { | |
position: absolute; | |
background-color: transparent; | |
left: calc(100% - 180px); | |
} | |
#typing-container { | |
display: none; | |
position: absolute; | |
background-color: transparent; | |
left: -2px; | |
padding: var(--block-padding); | |
} | |
.typing { | |
position: relative; | |
} | |
.visible-dots #typing-container { | |
display: block; | |
} | |
.typing span { | |
content: ''; | |
animation: blink 1.5s infinite; | |
animation-fill-mode: both; | |
height: 10px; | |
width: 10px; | |
background: #3b5998;; | |
position: absolute; | |
left:0; | |
top:0; | |
border-radius: 50%; | |
} | |
.typing .dot1 { | |
animation-delay: .2s; | |
margin-left: calc(10px * 1.5); | |
} | |
.typing .dot2 { | |
animation-delay: .4s; | |
margin-left: calc(10px * 3); | |
} | |
@keyframes blink { | |
0% { | |
opacity: .1; | |
} | |
20% { | |
opacity: 1; | |
} | |
100% { | |
opacity: .1; | |
} | |
} | |
#chat-tab .generating { | |
display: none ; | |
} | |