michael135 commited on
Commit
6a9dffd
·
1 Parent(s): 286e4fb

Update header_patch.py

Browse files
Files changed (1) hide show
  1. 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: 12px; 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: 12px; line-height: 20px; font-family: monospace;">
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>▲ Docker build from <a href="https://github.com/kalaspuff/stable-diffusion-webui-controlnet-docker" style="target=" _blank"="">🐙 GitHub ➔ kalaspuff/stable-diffusion-webui-controlnet-docker</a> / <a href="https://huggingface.co/spaces/carloscar/stable-diffusion-webui-controlnet-docker" style="target=" _blank"="">🤗 Hugging Face ➔ carloscar/stable-diffusion-webui-controlnet-docker</a></p>
23
- <p>▲ Load additional checkpoints, VAE, LoRA models, etc. Read more on the README at the GitHub link above.</p>
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>▲ Docker build from <a href="https://github.com/kalaspuff/stable-diffusion-webui-controlnet-docker" style="target=" _blank"="">🐙 GitHub ➔ kalaspuff/stable-diffusion-webui-controlnet-docker</a> / <a href="https://huggingface.co/spaces/carloscar/stable-diffusion-webui-controlnet-docker" style="target=" _blank"="">🤗 Hugging Face ➔ carloscar/stable-diffusion-webui-controlnet-docker</a></p>
31
- <p>▲ Load additional checkpoints, VAE, LoRA models, etc. Read more on the README at the GitHub link above.</p>
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
  """)