Spaces:
Sleeping
Sleeping
Felix Marty
commited on
Commit
•
fd7914e
1
Parent(s):
17ca086
add header
Browse files- app.py +33 -0
- header.webp +0 -0
app.py
CHANGED
@@ -10,7 +10,40 @@ from defaults import (
|
|
10 |
defaults_vanilla_spam,
|
11 |
)
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
14 |
gr.Markdown(
|
15 |
"""
|
16 |
Let's try out TorchServe + BetterTransformer!
|
|
|
10 |
defaults_vanilla_spam,
|
11 |
)
|
12 |
|
13 |
+
TTILE_IMAGE = """
|
14 |
+
<div
|
15 |
+
style="
|
16 |
+
display: block;
|
17 |
+
margin-left: auto;
|
18 |
+
margin-right: auto;
|
19 |
+
width: 50%;
|
20 |
+
"
|
21 |
+
>
|
22 |
+
<img src="https://huggingface.co/spaces/fxmarty/bettertransformer-demo/resolve/main/header.webp"/>
|
23 |
+
</div>
|
24 |
+
"""
|
25 |
+
|
26 |
+
TITLE = """
|
27 |
+
<div
|
28 |
+
style="
|
29 |
+
display: inline-flex;
|
30 |
+
align-items: center;
|
31 |
+
text-align: center;
|
32 |
+
max-width: 1400px;
|
33 |
+
gap: 0.8rem;
|
34 |
+
font-size: 2.2rem;
|
35 |
+
"
|
36 |
+
>
|
37 |
+
<h1 style="font-weight: 900; margin-bottom: 10px; margin-top: 10px;">
|
38 |
+
Speed up your inference and support more workload with PyTorch's BetterTransformer 🤗
|
39 |
+
</h1>
|
40 |
+
</div>
|
41 |
+
"""
|
42 |
+
|
43 |
with gr.Blocks() as demo:
|
44 |
+
gr.HTML(TTILE_IMAGE)
|
45 |
+
gr.HTML(TITLE)
|
46 |
+
|
47 |
gr.Markdown(
|
48 |
"""
|
49 |
Let's try out TorchServe + BetterTransformer!
|
header.webp
ADDED