BramVanroy commited on
Commit
b7c4d3b
·
verified ·
1 Parent(s): ac775e0

Sync from GitHub via hub-sync

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +10 -9
  3. requirements.txt +1 -1
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🔎
4
  colorFrom: indigo
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: "5.0.0"
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("Inter"),
79
  "ui-sans-serif",
80
  "system-ui",
81
  "sans-serif",
82
  ),
83
  font_mono=(
84
- gr.themes.GoogleFont("JetBrains Mono"),
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.TabItem(TAB_LABELS[0]):
478
  ast_output = gr.JSON(value=EMPTY_AST, label="")
479
- with gr.TabItem(TAB_LABELS[1]):
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.TabItem(TAB_LABELS[2]):
488
  spec_md = gr.Markdown(
489
  value=render_spec_description("None (permissive)"),
490
- latex_delimiters=[],
491
  )
492
- with gr.TabItem(TAB_LABELS[3]):
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>=6.13,<7
 
1
  bcql_py @ git+https://github.com/BramVanroy/bcql_py.git
2
+ gradio==6.13.0