Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ LOW_RESOURCE = False
|
|
| 13 |
MAX_NUM_WORDS = 77
|
| 14 |
|
| 15 |
is_colab = utils.is_google_colab()
|
| 16 |
-
colab_instruction = """
|
| 17 |
-
<p>You can skip the queue using Colab: <a href="https://colab.research.google.com/gist/ChenWu98/0aa4fe7be80f6b45d3d055df9f14353a/copy-of-fine-tuned-diffusion-gradio.ipynb"><img data-canonical-src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg"></a></p>"""
|
| 18 |
|
| 19 |
model_id_or_path = "CompVis/stable-diffusion-v1-4"
|
| 20 |
if is_colab:
|
|
@@ -313,8 +313,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 313 |
4. If CAC type is "Refine", the source prompt be a subsequence of the target prompt; otherwise, an error will be raised. <br>
|
| 314 |
</p>
|
| 315 |
<p>
|
| 316 |
-
<b>Runtimes:</b>
|
|
|
|
|
|
|
| 317 |
</p>
|
|
|
|
| 318 |
{colab_instruction}
|
| 319 |
Running on <b>{device_print}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
|
| 320 |
</p>
|
|
|
|
| 13 |
MAX_NUM_WORDS = 77
|
| 14 |
|
| 15 |
is_colab = utils.is_google_colab()
|
| 16 |
+
colab_instruction = "" if is_colab else """
|
| 17 |
+
<p>You can skip the queue using Colab: <a href="https://colab.research.google.com/gist/ChenWu98/0aa4fe7be80f6b45d3d055df9f14353a/copy-of-fine-tuned-diffusion-gradio.ipynb"><img data-canonical-src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg"></a></p>"""
|
| 18 |
|
| 19 |
model_id_or_path = "CompVis/stable-diffusion-v1-4"
|
| 20 |
if is_colab:
|
|
|
|
| 313 |
4. If CAC type is "Refine", the source prompt be a subsequence of the target prompt; otherwise, an error will be raised. <br>
|
| 314 |
</p>
|
| 315 |
<p>
|
| 316 |
+
<b>Runtimes:</b> <br>
|
| 317 |
+
1. 30s on A10G small. <br>
|
| 318 |
+
2. 90s on T4 small. <br>
|
| 319 |
</p>
|
| 320 |
+
<p>
|
| 321 |
{colab_instruction}
|
| 322 |
Running on <b>{device_print}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
|
| 323 |
</p>
|