Spaces:
Build error
Build error
Commit
·
6a9dffd
1
Parent(s):
286e4fb
Update header_patch.py
Browse files- header_patch.py +6 -10
header_patch.py
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
import torch
|
5 |
if not torch.cuda.is_available():
|
6 |
gr.HTML(f"""
|
7 |
-
<div class="gr-prose" style="max-width: 80%; font-size:
|
8 |
<p>▲ 我的網站<a href="https://jtlai0921.wixsite.com/mysite" style="target=" _blank"=""></p>
|
9 |
</div>
|
10 |
""")
|
11 |
else:
|
12 |
gr.HTML(f"""
|
13 |
-
<div class="gr-prose" style="max-width: 80%; font-size:
|
14 |
<p>▲ 我的網站<a href="https://jtlai0921.wixsite.com/mysite" style="target=" _blank"=""></p>
|
15 |
</div>
|
16 |
""")
|
@@ -19,16 +19,12 @@
|
|
19 |
if not torch.cuda.is_available():
|
20 |
gr.HTML(f"""
|
21 |
<div class="gr-prose" style="max-width: 80%; font-size: 12px; line-height: 20px; font-family: monospace;">
|
22 |
-
<p>▲
|
23 |
-
|
24 |
-
<p>▲ This Space is currently running on CPU, which may yield very slow results - you can upgrade for a GPU <a href="https://huggingface.co/spaces/{os.environ["SPACE_ID"]}/settings" style="text-decoration: underline" target="_blank">in the Settings tab</a></p>
|
25 |
-
</div>
|
26 |
""")
|
27 |
else:
|
28 |
gr.HTML(f"""
|
29 |
<div class="gr-prose" style="max-width: 80%; font-size: 12px; line-height: 20px; font-family: monospace;">
|
30 |
-
<p>▲
|
31 |
-
|
32 |
-
<p>▲ This Space has GPU enabled - remember to remove the GPU from the space <a href="https://huggingface.co/spaces/{os.environ["SPACE_ID"]}/settings" style="text-decoration: underline" target="_blank">in the Settings tab</a> when you're done.</p>
|
33 |
-
</div>
|
34 |
""")
|
|
|
4 |
import torch
|
5 |
if not torch.cuda.is_available():
|
6 |
gr.HTML(f"""
|
7 |
+
<div class="gr-prose" style="max-width: 80%; font-size: 20px; line-height: 20px; font-family: monospace;">
|
8 |
<p>▲ 我的網站<a href="https://jtlai0921.wixsite.com/mysite" style="target=" _blank"=""></p>
|
9 |
</div>
|
10 |
""")
|
11 |
else:
|
12 |
gr.HTML(f"""
|
13 |
+
<div class="gr-prose" style="max-width: 80%; font-size: 20px; line-height: 20px; font-family: monospace;">
|
14 |
<p>▲ 我的網站<a href="https://jtlai0921.wixsite.com/mysite" style="target=" _blank"=""></p>
|
15 |
</div>
|
16 |
""")
|
|
|
19 |
if not torch.cuda.is_available():
|
20 |
gr.HTML(f"""
|
21 |
<div class="gr-prose" style="max-width: 80%; font-size: 12px; line-height: 20px; font-family: monospace;">
|
22 |
+
<p>▲ 我的網站<a href="https://jtlai0921.wixsite.com/mysite" style="target=" _blank"=""></p>
|
23 |
+
</div>
|
|
|
|
|
24 |
""")
|
25 |
else:
|
26 |
gr.HTML(f"""
|
27 |
<div class="gr-prose" style="max-width: 80%; font-size: 12px; line-height: 20px; font-family: monospace;">
|
28 |
+
<p>▲ 我的網站<a href="https://jtlai0921.wixsite.com/mysite" style="target=" _blank"=""></p>
|
29 |
+
</div>
|
|
|
|
|
30 |
""")
|