Spaces:
Sleeping
Sleeping
Sync from GitHub via hub-sync
Browse files- README.md +1 -1
- app.py +10 -9
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🔎
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: "
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: "6.13.0"
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
app.py
CHANGED
|
@@ -75,13 +75,13 @@ THEME = gr.themes.Soft(
|
|
| 75 |
secondary_hue=INDIGO,
|
| 76 |
neutral_hue="slate",
|
| 77 |
font=(
|
| 78 |
-
gr.themes.GoogleFont("
|
| 79 |
"ui-sans-serif",
|
| 80 |
"system-ui",
|
| 81 |
"sans-serif",
|
| 82 |
),
|
| 83 |
font_mono=(
|
| 84 |
-
gr.themes.GoogleFont("
|
| 85 |
"ui-monospace",
|
| 86 |
"Consolas",
|
| 87 |
"monospace",
|
|
@@ -95,6 +95,7 @@ THEME = gr.themes.Soft(
|
|
| 95 |
button_primary_text_color="white",
|
| 96 |
)
|
| 97 |
|
|
|
|
| 98 |
CUSTOM_CSS = """
|
| 99 |
.bcql-header {
|
| 100 |
text-align: center;
|
|
@@ -470,13 +471,13 @@ def build_demo() -> gr.Blocks:
|
|
| 470 |
error_md = gr.Markdown(
|
| 471 |
value="",
|
| 472 |
label="Error details",
|
| 473 |
-
latex_delimiters=
|
| 474 |
)
|
| 475 |
|
| 476 |
with gr.Tabs():
|
| 477 |
-
with gr.
|
| 478 |
ast_output = gr.JSON(value=EMPTY_AST, label="")
|
| 479 |
-
with gr.
|
| 480 |
canonical_output = gr.Textbox(
|
| 481 |
label="",
|
| 482 |
value="",
|
|
@@ -484,13 +485,13 @@ def build_demo() -> gr.Blocks:
|
|
| 484 |
max_lines=10,
|
| 485 |
interactive=False,
|
| 486 |
)
|
| 487 |
-
with gr.
|
| 488 |
spec_md = gr.Markdown(
|
| 489 |
value=render_spec_description("None (permissive)"),
|
| 490 |
-
latex_delimiters=
|
| 491 |
)
|
| 492 |
-
with gr.
|
| 493 |
-
gr.Markdown(ABOUT_MARKDOWN, latex_delimiters=
|
| 494 |
|
| 495 |
gr.HTML(
|
| 496 |
'<div class="bcql-footer">Built with '
|
|
|
|
| 75 |
secondary_hue=INDIGO,
|
| 76 |
neutral_hue="slate",
|
| 77 |
font=(
|
| 78 |
+
gr.themes.GoogleFont("Roboto"),
|
| 79 |
"ui-sans-serif",
|
| 80 |
"system-ui",
|
| 81 |
"sans-serif",
|
| 82 |
),
|
| 83 |
font_mono=(
|
| 84 |
+
gr.themes.GoogleFont("Roboto Mono"),
|
| 85 |
"ui-monospace",
|
| 86 |
"Consolas",
|
| 87 |
"monospace",
|
|
|
|
| 95 |
button_primary_text_color="white",
|
| 96 |
)
|
| 97 |
|
| 98 |
+
# Theming: https://www.gradio.app/guides/theming-guide#extending-themes-via-set
|
| 99 |
CUSTOM_CSS = """
|
| 100 |
.bcql-header {
|
| 101 |
text-align: center;
|
|
|
|
| 471 |
error_md = gr.Markdown(
|
| 472 |
value="",
|
| 473 |
label="Error details",
|
| 474 |
+
latex_delimiters=None,
|
| 475 |
)
|
| 476 |
|
| 477 |
with gr.Tabs():
|
| 478 |
+
with gr.Tab(TAB_LABELS[0]):
|
| 479 |
ast_output = gr.JSON(value=EMPTY_AST, label="")
|
| 480 |
+
with gr.Tab(TAB_LABELS[1]):
|
| 481 |
canonical_output = gr.Textbox(
|
| 482 |
label="",
|
| 483 |
value="",
|
|
|
|
| 485 |
max_lines=10,
|
| 486 |
interactive=False,
|
| 487 |
)
|
| 488 |
+
with gr.Tab(TAB_LABELS[2]):
|
| 489 |
spec_md = gr.Markdown(
|
| 490 |
value=render_spec_description("None (permissive)"),
|
| 491 |
+
latex_delimiters=None,
|
| 492 |
)
|
| 493 |
+
with gr.Tab(TAB_LABELS[3]):
|
| 494 |
+
gr.Markdown(ABOUT_MARKDOWN, latex_delimiters=None)
|
| 495 |
|
| 496 |
gr.HTML(
|
| 497 |
'<div class="bcql-footer">Built with '
|
requirements.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
bcql_py @ git+https://github.com/BramVanroy/bcql_py.git
|
| 2 |
-
gradio
|
|
|
|
| 1 |
bcql_py @ git+https://github.com/BramVanroy/bcql_py.git
|
| 2 |
+
gradio==6.13.0
|