Spaces:
Running
Running
File size: 2,836 Bytes
df40b1d |
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
/* Custom CSS for LLM Inference Interface */
/* Header styling */
.markdown h1 {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 800;
margin-bottom: 0.5rem;
}
.markdown h3 {
color: #4a5568;
font-weight: 600;
margin-top: 0.25rem;
}
/* Duration estimate styling */
.duration-estimate {
background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
border-left: 4px solid #667eea;
padding: 12px;
border-radius: 8px;
margin: 16px 0;
font-size: 0.9em;
}
/* Group styling for better visual separation */
.gradio-group {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 16px;
background: #f8fafc;
margin-bottom: 16px;
}
/* Accordion styling */
.gradio-accordion {
border: 1px solid #e2e8f0;
border-radius: 8px;
margin-bottom: 12px;
}
.gradio-accordion .label-wrap {
background: #f1f5f9;
font-weight: 600;
}
/* Chat interface improvements */
.chatbot {
border-radius: 12px;
border: 1px solid #e2e8f0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Input area styling */
.textbox-container {
border-radius: 24px;
border: 2px solid #e2e8f0;
transition: border-color 0.2s;
}
.textbox-container:focus-within {
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
/* Button improvements */
.gradio-button {
border-radius: 8px;
font-weight: 600;
transition: all 0.2s;
}
.gradio-button.primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
}
.gradio-button.primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.gradio-button.secondary {
border: 2px solid #e2e8f0;
background: white;
}
.gradio-button.secondary:hover {
border-color: #cbd5e0;
background: #f7fafc;
}
/* Slider styling */
.gradio-slider {
margin: 8px 0;
}
.gradio-slider input[type="range"] {
accent-color: #667eea;
}
/* Info text styling */
.info {
color: #718096;
font-size: 0.85em;
font-style: italic;
}
/* Footer styling */
.footer .markdown {
text-align: center;
color: #718096;
font-size: 0.9em;
padding: 16px;
background: #f8fafc;
border-radius: 8px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.gradio-row {
flex-direction: column;
}
.chatbot {
height: 400px !important;
}
}
/* Loading animation */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.generating {
animation: pulse 1.5s ease-in-out infinite;
}
/* Smooth transitions */
* {
transition: background-color 0.2s, border-color 0.2s;
}
|