New font
Browse files
app.py
CHANGED
|
@@ -37,8 +37,7 @@ model = QwenVLAPIModel(
|
|
| 37 |
custom_css = """
|
| 38 |
:root {
|
| 39 |
--body-background-fill: black!important;
|
| 40 |
-
--background-fill-secondary: #
|
| 41 |
-
--block-background-fill: black!important;
|
| 42 |
--body-text-color: #f59e0b!important;
|
| 43 |
--block-text-color: #f59e0b!important;
|
| 44 |
}
|
|
@@ -184,6 +183,9 @@ footer_html="""
|
|
| 184 |
</div>
|
| 185 |
"""
|
| 186 |
sandbox_html_template = """
|
|
|
|
|
|
|
|
|
|
| 187 |
<div class="sandbox-container {theme}">
|
| 188 |
<div class="status-bar">
|
| 189 |
<div class="status-indicator {status_class}"></div>
|
|
@@ -562,7 +564,7 @@ class EnrichedGradioUI(GradioUI):
|
|
| 562 |
finally:
|
| 563 |
upload_to_hf_and_remove(data_dir)
|
| 564 |
|
| 565 |
-
theme = gr.themes.Default(primary_hue="amber", secondary_hue="blue")
|
| 566 |
|
| 567 |
# Create a Gradio app with Blocks
|
| 568 |
with gr.Blocks(theme=theme, css=custom_css, js=custom_js, fill_width=True) as demo:
|
|
|
|
| 37 |
custom_css = """
|
| 38 |
:root {
|
| 39 |
--body-background-fill: black!important;
|
| 40 |
+
--background-fill-secondary: #fad391!important;
|
|
|
|
| 41 |
--body-text-color: #f59e0b!important;
|
| 42 |
--block-text-color: #f59e0b!important;
|
| 43 |
}
|
|
|
|
| 183 |
</div>
|
| 184 |
"""
|
| 185 |
sandbox_html_template = """
|
| 186 |
+
<style>
|
| 187 |
+
@import url('https://fonts.googleapis.com/css2?family=Oxanium:[email protected]&display=swap');
|
| 188 |
+
</style>
|
| 189 |
<div class="sandbox-container {theme}">
|
| 190 |
<div class="status-bar">
|
| 191 |
<div class="status-indicator {status_class}"></div>
|
|
|
|
| 564 |
finally:
|
| 565 |
upload_to_hf_and_remove(data_dir)
|
| 566 |
|
| 567 |
+
theme = gr.themes.Default(font=[gr.themes.GoogleFont("Oxanium"), "Futura", "sans-serif"], primary_hue="amber", secondary_hue="blue")
|
| 568 |
|
| 569 |
# Create a Gradio app with Blocks
|
| 570 |
with gr.Blocks(theme=theme, css=custom_css, js=custom_js, fill_width=True) as demo:
|