Spaces:
Runtime error
Runtime error
File size: 5,718 Bytes
9f37c2c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
with gr.Box(visible=is_spaces):
if(is_spaces and is_shared_ui):
gr.HTML(f'''
<div class="gr-prose" style="max-width: 80%">
<p>π¨ We have a new version β¨ please try it and add a comment if you find any issues. <a style="color: #00ff00;" href="https://huggingface.co/spaces/achyuth1344/stable-diffusion-webui">https://huggingface.co/spaces/achyuth1344/stable-diffusion-webui</a></p>
<br>
<p>π§ (WIP) Automatic1111 Stable Diffusion Web UI on π€ Hugging Face Spaces | Running model: Linaqruf/anything-v3.0</p>
<p>You can duplicate this Space to run it privately without a queue and load additional checkpoints. <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}?duplicate=true"><img style="margin: 0" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a> <a style="display:inline-block" href="https://github.com/camenduru/stable-diffusion-webui-colab" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> <a style="display:inline-block" href="https://patreon.com/camenduru"><img style="margin: 0" alt="Become A Patreon" src="https://badgen.net/badge/become/a%20patron/F96854"></a> <a style="display:inline-block" href="https://ko-fi.com/camenduru" target="_blank"><img style="margin: 0" alt="Buy a Coffee" src="https://badgen.net/badge/buy/a%20coffee/green?icon=kofi"></a></p>
<p>π How to add private model or embed? πΊ Tutorial Video: <a href="https://www.youtube.com/channel/UCs_1ej3ysIROjWZVmNw-tyw" style="target=" _blank"="">https://www.youtube.com/channel/UCs_1ej3ysIROjWZVmNw-tyw</a> π£ Please follow me for new updates <a href="https://twitter.com/pixiejourney" style="target=" _blank"="">https://twitter.com/pixiejourney</a> </p>
</div>
''')
elif(is_spaces):
import torch
if(not torch.cuda.is_available()):
gr.HTML(f'''
<div class="gr-prose" style="max-width: 80%">
<p>π§ (WIP) Private Automatic1111 Stable Diffusion Web UI on π€ Hugging Face Spaces</p>
<p>This Space is currently running on CPU, this WebUI may not run on CPU π₯Ά, 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> <a style="display:inline-block" href="https://github.com/achyuth4" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> <a style="display:inline-block" href="https://patreon.com/camenduru"><img style="margin: 0" alt="Become A Patreon" src="https://badgen.net/badge/become/a%20patron/F96854"></a> <a style="display:inline-block" href="https://ko-fi.com/achyuth4" target="_blank"><img style="margin: 0" alt="Buy a Coffee" src="https://badgen.net/badge/buy/a%20coffee/green?icon=kofi"></a></p>
<p>π How to add private model or embed? πΊ Tutorial Video: <a href="https://www.youtube.com/channel/UCs_1ej3ysIROjWZVmNw-tyw" style="target=" _blank"="">https://www.youtube.com/channel/UCs_1ej3ysIROjWZVmNw-tyw</a> π£ Please follow me for new updates <a href="https://twitter.com/pixiejourney" style="target=" _blank"="">https://twitter.com/pixiejourney</a> </p>
</div>
''')
else:
gr.HTML(f'''
<div class="gr-prose" style="max-width: 80%">
<p>π§ (WIP) Private Automatic1111 Stable Diffusion Web UI on π€ Hugging Face Spaces</p>
<p>It is running on a GPU π₯, you can <a href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}/settings" style="text-decoration: underline" target="_blank">don't forget to remove the GPU attribution</a> once your are done playing with it <a style="display:inline-block" href="https://github.com/achyuth4" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> <a style="display:inline-block" href="https://patreon.com/achyuth1344"><img style="margin: 0" alt="Become A Patreon" src="https://badgen.net/badge/become/a%20patron/F96854"></a> <a style="display:inline-block" href="https://ko-fi.com/achyuth4" target="_blank"><img style="margin: 0" alt="Buy a Coffee" src="https://badgen.net/badge/buy/a%20coffee/green?icon=kofi"></a></p>
<p>π How to add private model or embed? πΊ Tutorial Video: <a href="https://www.youtube.com/channel/UCs_1ej3ysIROjWZVmNw-tyw" style="target=" _blank"="">https://www.youtube.com/channel/UCs_1ej3ysIROjWZVmNw-tyw</a> π£ Please follow me for new updates <a href="https://twitter.com/pixiejourney" style="target=" _blank"="">https://twitter.com/pixiejourney</a> </p>
</div>
''')
|