Spaces:
Running
Running
hysts
commited on
Commit
•
0ec55dd
1
Parent(s):
a7a3cc5
Update
Browse files
app.py
CHANGED
@@ -40,6 +40,12 @@ DESCRIPTION = '''# ControlNet
|
|
40 |
|
41 |
This is an unofficial demo for [https://github.com/lllyasviel/ControlNet](https://github.com/lllyasviel/ControlNet).
|
42 |
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
model = Model()
|
45 |
|
|
|
40 |
|
41 |
This is an unofficial demo for [https://github.com/lllyasviel/ControlNet](https://github.com/lllyasviel/ControlNet).
|
42 |
'''
|
43 |
+
if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
|
44 |
+
DESCRIPTION += f'''<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.<br/>
|
45 |
+
<a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true">
|
46 |
+
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
47 |
+
<p/>
|
48 |
+
'''
|
49 |
|
50 |
model = Model()
|
51 |
|