Spaces:
Runtime error
Runtime error
Commit
·
cad2878
1
Parent(s):
569d21a
Add duplicate space point
Browse files
app.py
CHANGED
|
@@ -152,7 +152,7 @@ with gr.Blocks() as demo:
|
|
| 152 |
gr.HTML('''
|
| 153 |
<center>
|
| 154 |
<iframe width="920" height="600" src="https://www.youtube.com/embed/aTC59Q6ZDNM">
|
| 155 |
-
|
| 156 |
</iframe>
|
| 157 |
</center>
|
| 158 |
'''
|
|
@@ -172,9 +172,17 @@ with gr.Blocks() as demo:
|
|
| 172 |
genimages = gr.Gallery(label="Generated images",
|
| 173 |
show_label=False,
|
| 174 |
elem_id="gallery").style(grid=[1,2], height="auto")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
b1.click(run, [imgmask, prompt, seed, scale, num_steps, immunize], [genimages])
|
| 176 |
examples = gr.Examples(examples=examples_list,inputs = [imgmask, prompt, seed, scale, num_steps, immunize], outputs=[genimages], cache_examples=False, fn=run)
|
| 177 |
|
| 178 |
|
| 179 |
demo.launch()
|
| 180 |
-
# demo.launch(server_name='0.0.0.0', share=
|
|
|
|
| 152 |
gr.HTML('''
|
| 153 |
<center>
|
| 154 |
<iframe width="920" height="600" src="https://www.youtube.com/embed/aTC59Q6ZDNM">
|
| 155 |
+
allow="fullscreen;" frameborder="0">
|
| 156 |
</iframe>
|
| 157 |
</center>
|
| 158 |
'''
|
|
|
|
| 172 |
genimages = gr.Gallery(label="Generated images",
|
| 173 |
show_label=False,
|
| 174 |
elem_id="gallery").style(grid=[1,2], height="auto")
|
| 175 |
+
duplicate = gr.HTML("""
|
| 176 |
+
<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.
|
| 177 |
+
<br/>
|
| 178 |
+
<a href="https://huggingface.co/spaces/hadisalman/photoguard?duplicate=true">
|
| 179 |
+
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
| 180 |
+
<p/>
|
| 181 |
+
""")
|
| 182 |
+
|
| 183 |
b1.click(run, [imgmask, prompt, seed, scale, num_steps, immunize], [genimages])
|
| 184 |
examples = gr.Examples(examples=examples_list,inputs = [imgmask, prompt, seed, scale, num_steps, immunize], outputs=[genimages], cache_examples=False, fn=run)
|
| 185 |
|
| 186 |
|
| 187 |
demo.launch()
|
| 188 |
+
# demo.launch(server_name='0.0.0.0', share=False, server_port=7860, inline=False)
|