Spaces:
Running
Running
File size: 3,973 Bytes
f32a8f6 |
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 = """
.container {
border: 2px solid #2196F3;
border-radius: 10px;
padding: 12px;
margin: 6px;
background: white;
position: relative;
width: 100% !important;
max-width: 1200px !important;
margin: 0 auto 20px auto !important;
}
.container::before {
position: absolute;
top: -10px;
left: 20px;
background: white;
padding: 0 10px;
color: #2196F3;
font-weight: bold;
font-size: 1.2em;
}
.title-container {
width: fit-content !important;
margin: 0 auto !important;
padding: 2px 40px !important;
border: 1px solid #0066cc !important;
border-radius: 10px !important;
background-color: rgba(0, 102, 204, 0.05) !important;
}
.title-container * {
text-align: center;
margin: 0 !important;
line-height: 1.2 !important;
}
.title-container h1 {
font-size: 28px !important;
margin-bottom: 1px !important;
}
.title-container h3 {
font-size: 18px !important;
margin-bottom: 1px !important;
}
.title-container p {
font-size: 14px !important;
margin-bottom: 1px !important;
}
.input-container::before {
content: 'PROMPT REFINEMENT';
}
.analysis-container::before {
content: 'ANALYSIS';
}
.model-container::before {
content: 'MODEL APPLICATION';
}
.examples-container::before {
content: 'EXAMPLES';
}
/* Resizable textbox */
.input-container textarea {
resize: vertical !important;
min-height: 100px !important;
max-height: 500px !important;
width: 100% !important;
border: 1px solid #ddd !important;
border-radius: 4px !important;
padding: 8px !important;
transition: all 0.3s ease !important;
}
.input-container textarea:focus {
border-color: #2196F3 !important;
box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1) !important;
}
/* Radio group styling */
.radio-group {
background-color: rgba(0, 102, 204, 0.05) !important;
padding: 10px !important;
border-radius: 8px !important;
border: 1px solid rgba(0, 102, 204, 0.1) !important;
display: flex !important;
justify-content: center !important;
flex-wrap: wrap !important;
gap: 8px !important;
width: 100% !important;
}
.gradio-radio {
display: flex !important;
justify-content: center !important;
flex-wrap: wrap !important;
gap: 8px !important;
}
.gradio-radio label {
display: flex !important;
align-items: center !important;
padding: 6px 12px !important;
border: 1px solid #ddd !important;
border-radius: 4px !important;
cursor: pointer !important;
background: white !important;
margin: 4px !important;
}
.gradio-radio input[type="radio"]:checked + label {
background: rgba(0, 102, 204, 0.1) !important;
border-color: #0066cc !important;
color: #0066cc !important;
font-weight: bold !important;
}
/* Button styling */
.gradio-button {
background-color: white !important;
color: #2196F3 !important;
border: 2px solid #2196F3 !important;
border-radius: 4px !important;
padding: 8px 16px !important;
margin: 10px 0 !important;
font-weight: bold !important;
transition: all 0.3s ease !important;
}
.gradio-button:hover {
background-color: #2196F3 !important;
color: white !important;
box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3) !important;
}
/* Accordion styling */
.gradio-accordion {
margin: 10px 0 !important;
border: none !important;
}
/* Container alignment */
.gradio-container {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
width: 100% !important;
max-width: 1200px !important;
margin: 0 auto !important;
}
/* Dropdown styling */
.gradio-dropdown {
width: 100% !important;
max-width: 300px !important;
}
/* JSON container */
.full-response-json {
margin-top: 20px !important;
padding: 10px !important;
background-color: rgba(0, 102, 204, 0.05) !important;
border-radius: 8px !important;
}
""" |