Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -43,11 +43,16 @@ with gr.Blocks(css=".output-image, .input-image, .image-preview {height: 600px !
|
|
43 |
## Harmonize any image you want! Arbitrary resolution, and arbitrary aspect ratio!
|
44 |
### Official Gradio Demo. See here for [**How to play with this Space**](https://github.com/WindVChen/INR-Harmonization/blob/main/assets/demo.gif)
|
45 |
**Since Gradio Space only support CPU, the speed may kind of slow. You may better download the code to run locally with a GPU.**
|
46 |
-
<a href="https://huggingface.co/spaces/WindVChen/INR-Harmon?duplicate=true" style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">
|
47 |
-
<img style="margin-bottom: 0em;display: inline;margin-top: -.25em;" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> for no queue on your own hardware.</p>
|
48 |
* Official Repo: [INR-Harmonization](https://github.com/WindVChen/INR-Harmonization)
|
49 |
""")
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
gr.Markdown("""
|
52 |
## Quick Start
|
53 |
1. Select desired `Pretrained Model`.
|
@@ -313,6 +318,6 @@ with gr.Blocks(css=".output-image, .input-image, .image-preview {height: 600px !
|
|
313 |
|
314 |
gr.close_all()
|
315 |
|
316 |
-
app.queue(concurrency_count=1, max_size=
|
317 |
|
318 |
app.launch(show_api=False)
|
|
|
43 |
## Harmonize any image you want! Arbitrary resolution, and arbitrary aspect ratio!
|
44 |
### Official Gradio Demo. See here for [**How to play with this Space**](https://github.com/WindVChen/INR-Harmonization/blob/main/assets/demo.gif)
|
45 |
**Since Gradio Space only support CPU, the speed may kind of slow. You may better download the code to run locally with a GPU.**
|
|
|
|
|
46 |
* Official Repo: [INR-Harmonization](https://github.com/WindVChen/INR-Harmonization)
|
47 |
""")
|
48 |
|
49 |
+
gr.HTML("""
|
50 |
+
<font color="#660000">Since sometimes it will raise ERROR when multiple users access this space at the same time, we highly recommend you to duplicate this space and run in your private space for no queue on your own hardware.</font><br />
|
51 |
+
<a href="https://huggingface.co/spaces/WindVChen/INR-Harmon?duplicate=true" style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">
|
52 |
+
<img style="margin-bottom: 0em;display: inline;margin-top: -.25em;" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
53 |
+
""")
|
54 |
+
|
55 |
+
|
56 |
gr.Markdown("""
|
57 |
## Quick Start
|
58 |
1. Select desired `Pretrained Model`.
|
|
|
318 |
|
319 |
gr.close_all()
|
320 |
|
321 |
+
app.queue(concurrency_count=1, max_size=1, api_open=False)
|
322 |
|
323 |
app.launch(show_api=False)
|