Upload header_patch.py
Browse files- header_patch.py +17 -0
header_patch.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
with gr.Box(visible=is_spaces):
|
| 2 |
+
if(is_spaces and is_shared_ui):
|
| 3 |
+
gr.HTML(f'''
|
| 4 |
+
<div class="gr-prose" style="max-width: 80%">
|
| 5 |
+
<p>🚨 using CPU</p>
|
| 6 |
+
<p>🚧 (WIP) Automatic1111 Stable Diffusion Web UI on 🤗 Hugging Face Spaces | Running model: WarriorMama777/AOM3A3.safetensors</p>
|
| 7 |
+
<p>You can duplicate this Space to run it privately without a queue and load additional checkpoints.</p>
|
| 8 |
+
</div>
|
| 9 |
+
''')
|
| 10 |
+
elif(is_spaces):
|
| 11 |
+
gr.HTML(f'''
|
| 12 |
+
<div class="gr-prose" style="max-width: 80%">
|
| 13 |
+
<p>🚧 (WIP) Private Automatic1111 Stable Diffusion Web UI on 🤗 Hugging Face Spaces</p>
|
| 14 |
+
<p>This Space is currently running on CPU</p>
|
| 15 |
+
</div>
|
| 16 |
+
''')
|
| 17 |
+
|