Spaces:
Build error
Build error
Commit
•
2f9ccae
1
Parent(s):
3c78fe0
Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,7 @@ import time
|
|
12 |
import psutil
|
13 |
import random
|
14 |
|
15 |
-
### [Start] Duplicate only tag ###
|
16 |
is_shared_ui = True if "AIFILMS/Pix2Pix-Video" in os.environ['SPACE_ID'] else False
|
17 |
-
### [End] Duplicate only tag ###
|
18 |
-
|
19 |
|
20 |
pipe = DiffusionPipeline.from_pretrained("timbrooks/instruct-pix2pix", torch_dtype=torch.float16, safety_checker=None)
|
21 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
@@ -201,8 +198,8 @@ with gr.Blocks(css='style.css') as demo:
|
|
201 |
with gr.Box():
|
202 |
top_description = gr.HTML(f'''
|
203 |
<div class="gr-prose" style="max-width: 80%">
|
204 |
-
<h2>Attention - This Space doesn't work in this shared UI</h2>
|
205 |
-
<p>For it to work, you can access the
|
206 |
</div>
|
207 |
''')
|
208 |
with gr.Column(elem_id="col-container"):
|
|
|
12 |
import psutil
|
13 |
import random
|
14 |
|
|
|
15 |
is_shared_ui = True if "AIFILMS/Pix2Pix-Video" in os.environ['SPACE_ID'] else False
|
|
|
|
|
16 |
|
17 |
pipe = DiffusionPipeline.from_pretrained("timbrooks/instruct-pix2pix", torch_dtype=torch.float16, safety_checker=None)
|
18 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
|
|
198 |
with gr.Box():
|
199 |
top_description = gr.HTML(f'''
|
200 |
<div class="gr-prose" style="max-width: 80%">
|
201 |
+
<h2 style="margin-top: 0">Attention - This Space doesn't work in this shared UI</h2>
|
202 |
+
<p>For it to work, you can access the <a href="https://huggingface.co/spaces/fffiloni/Pix2Pix-Video">original</a> or duplicate this Space and run it on your own profile using a GPU. <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}?duplicate=true"><img 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></p>
|
203 |
</div>
|
204 |
''')
|
205 |
with gr.Column(elem_id="col-container"):
|