Spaces:
Sleeping
Sleeping
feat: add CSS font
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
|
|
|
|
|
|
|
4 |
DEFAULT_CASE = "case_2"
|
5 |
CASE_LIST = ["case_0", "case_1", "case_2"]
|
6 |
data = {}
|
@@ -28,6 +31,7 @@ with gr.Blocks(
|
|
28 |
theme=gr.themes.Ocean(
|
29 |
font_mono="PT Mono",
|
30 |
),
|
|
|
31 |
) as demo:
|
32 |
gr.Markdown("# 2D Layout-Preserving Text Serialization Demo")
|
33 |
with gr.Row():
|
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
|
4 |
+
HEAD_HTML = """
|
5 |
+
<link href='https://fonts.googleapis.com/css?family=PT Mono' rel='stylesheet'>
|
6 |
+
"""
|
7 |
DEFAULT_CASE = "case_2"
|
8 |
CASE_LIST = ["case_0", "case_1", "case_2"]
|
9 |
data = {}
|
|
|
31 |
theme=gr.themes.Ocean(
|
32 |
font_mono="PT Mono",
|
33 |
),
|
34 |
+
head=HEAD_HTML,
|
35 |
) as demo:
|
36 |
gr.Markdown("# 2D Layout-Preserving Text Serialization Demo")
|
37 |
with gr.Row():
|