Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -152,34 +152,34 @@ def predict(question, schema, num_beams, max_length):
|
|
| 152 |
|
| 153 |
|
| 154 |
theme = gr.themes.Base(
|
| 155 |
-
primary_hue="
|
| 156 |
secondary_hue="purple",
|
| 157 |
-
neutral_hue="
|
| 158 |
font=gr.themes.GoogleFont("Inter"),
|
| 159 |
font_mono=gr.themes.GoogleFont("Fira Code"),
|
| 160 |
).set(
|
| 161 |
-
body_background_fill="#
|
| 162 |
body_text_color="#e2e8f0",
|
| 163 |
-
block_background_fill="#
|
| 164 |
-
block_border_color="#
|
| 165 |
block_border_width="1px",
|
| 166 |
-
block_label_text_color="#
|
| 167 |
-
block_title_text_color="#
|
| 168 |
block_radius="12px",
|
| 169 |
block_shadow="none",
|
| 170 |
-
input_background_fill="#
|
| 171 |
-
input_border_color="#
|
| 172 |
input_border_width="1px",
|
| 173 |
-
input_placeholder_color="#
|
| 174 |
input_radius="8px",
|
| 175 |
-
slider_color="#
|
| 176 |
-
button_primary_background_fill="linear-gradient(135deg, #
|
| 177 |
button_primary_text_color="#ffffff",
|
| 178 |
-
button_secondary_background_fill="#
|
| 179 |
-
button_secondary_text_color="#
|
| 180 |
-
button_secondary_border_color="#
|
| 181 |
-
border_color_primary="#
|
| 182 |
-
color_accent_soft="#
|
| 183 |
)
|
| 184 |
|
| 185 |
with gr.Blocks(title="Text-to-SQL | T5 on WikiSQL") as demo:
|
|
|
|
| 152 |
|
| 153 |
|
| 154 |
theme = gr.themes.Base(
|
| 155 |
+
primary_hue="blue",
|
| 156 |
secondary_hue="purple",
|
| 157 |
+
neutral_hue="gray",
|
| 158 |
font=gr.themes.GoogleFont("Inter"),
|
| 159 |
font_mono=gr.themes.GoogleFont("Fira Code"),
|
| 160 |
).set(
|
| 161 |
+
body_background_fill="#0d1117",
|
| 162 |
body_text_color="#e2e8f0",
|
| 163 |
+
block_background_fill="#161b22",
|
| 164 |
+
block_border_color="#1f2937",
|
| 165 |
block_border_width="1px",
|
| 166 |
+
block_label_text_color="#d1d5db",
|
| 167 |
+
block_title_text_color="#f3f4f6",
|
| 168 |
block_radius="12px",
|
| 169 |
block_shadow="none",
|
| 170 |
+
input_background_fill="#111827",
|
| 171 |
+
input_border_color="#1f2937",
|
| 172 |
input_border_width="1px",
|
| 173 |
+
input_placeholder_color="#4b5563",
|
| 174 |
input_radius="8px",
|
| 175 |
+
slider_color="#3b82f6",
|
| 176 |
+
button_primary_background_fill="linear-gradient(135deg, #3b82f6, #8b5cf6)",
|
| 177 |
button_primary_text_color="#ffffff",
|
| 178 |
+
button_secondary_background_fill="#111827",
|
| 179 |
+
button_secondary_text_color="#d1d5db",
|
| 180 |
+
button_secondary_border_color="#1f2937",
|
| 181 |
+
border_color_primary="#1f2937",
|
| 182 |
+
color_accent_soft="#111827",
|
| 183 |
)
|
| 184 |
|
| 185 |
with gr.Blocks(title="Text-to-SQL | T5 on WikiSQL") as demo:
|