Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -151,12 +151,36 @@ def predict(question, schema, num_beams, max_length):
|
|
| 151 |
return sql, raw_output, parsed, perf
|
| 152 |
|
| 153 |
|
| 154 |
-
theme = gr.themes.
|
| 155 |
primary_hue="indigo",
|
| 156 |
secondary_hue="purple",
|
| 157 |
neutral_hue="slate",
|
| 158 |
font=gr.themes.GoogleFont("Inter"),
|
| 159 |
font_mono=gr.themes.GoogleFont("Fira Code"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
)
|
| 161 |
|
| 162 |
with gr.Blocks(title="Text-to-SQL | T5 on WikiSQL") as demo:
|
|
|
|
| 151 |
return sql, raw_output, parsed, perf
|
| 152 |
|
| 153 |
|
| 154 |
+
theme = gr.themes.Base(
|
| 155 |
primary_hue="indigo",
|
| 156 |
secondary_hue="purple",
|
| 157 |
neutral_hue="slate",
|
| 158 |
font=gr.themes.GoogleFont("Inter"),
|
| 159 |
font_mono=gr.themes.GoogleFont("Fira Code"),
|
| 160 |
+
).set(
|
| 161 |
+
body_background_fill="#0f0d23",
|
| 162 |
+
body_text_color="#e2e8f0",
|
| 163 |
+
block_background_fill="#16132d",
|
| 164 |
+
block_border_color="#312e81",
|
| 165 |
+
block_border_width="1px",
|
| 166 |
+
block_label_text_color="#c7d2fe",
|
| 167 |
+
block_title_text_color="#e0e7ff",
|
| 168 |
+
block_radius="12px",
|
| 169 |
+
block_shadow="none",
|
| 170 |
+
input_background_fill="#1e1b4b",
|
| 171 |
+
input_border_color="#312e81",
|
| 172 |
+
input_border_width="1px",
|
| 173 |
+
input_text_color="#e2e8f0",
|
| 174 |
+
input_placeholder_color="#64748b",
|
| 175 |
+
input_radius="8px",
|
| 176 |
+
slider_color="#6366f1",
|
| 177 |
+
button_primary_background_fill="linear-gradient(135deg, #6366f1, #8b5cf6)",
|
| 178 |
+
button_primary_text_color="#ffffff",
|
| 179 |
+
button_secondary_background_fill="#1e1b4b",
|
| 180 |
+
button_secondary_text_color="#c7d2fe",
|
| 181 |
+
button_secondary_border_color="#312e81",
|
| 182 |
+
border_color_primary="#312e81",
|
| 183 |
+
color_accent_soft="#1e1b4b",
|
| 184 |
)
|
| 185 |
|
| 186 |
with gr.Blocks(title="Text-to-SQL | T5 on WikiSQL") as demo:
|