Spaces:
Sleeping
Sleeping
Commit
·
631a047
1
Parent(s):
7b79cdc
Refactor theme configuration in app.py to simplify font settings.
Browse files
app.py
CHANGED
|
@@ -61,10 +61,7 @@ hf_writer = HuggingFaceDatasetSaver(get_token(), dataset_name)
|
|
| 61 |
flagged_counter = FlaggedCounter(dataset_name)
|
| 62 |
|
| 63 |
|
| 64 |
-
theme = gr.themes.Default(
|
| 65 |
-
primary_hue=gr.themes.colors.indigo,
|
| 66 |
-
font=[gr.themes.GoogleFont("Saira"), gr.themes.GoogleFont("Source Sans Pro")],
|
| 67 |
-
)
|
| 68 |
with gr.Blocks(theme=theme, css=css, title="SEA.AI Vision Demo") as demo:
|
| 69 |
badges = gr.HTML(load_badges(flagged_counter.count()))
|
| 70 |
title = gr.HTML(TITLE)
|
|
|
|
| 61 |
flagged_counter = FlaggedCounter(dataset_name)
|
| 62 |
|
| 63 |
|
| 64 |
+
theme = gr.themes.Default(primary_hue=gr.themes.colors.indigo)
|
|
|
|
|
|
|
|
|
|
| 65 |
with gr.Blocks(theme=theme, css=css, title="SEA.AI Vision Demo") as demo:
|
| 66 |
badges = gr.HTML(load_badges(flagged_counter.count()))
|
| 67 |
title = gr.HTML(TITLE)
|