Update app.py
Browse files
app.py
CHANGED
|
@@ -39,10 +39,8 @@ for x in range(8):
|
|
| 39 |
|
| 40 |
title = "Stable Diffusion Prompt Generator"
|
| 41 |
description = 'This is a demo of the model series: "MagicPrompt", in this case, aimed at: "Stable Diffusion". To use it, simply submit your text or click on one of the examples. To learn more about the model, [click here](https://huggingface.co/Gustavosta/MagicPrompt-Stable-Diffusion).<br>'
|
| 42 |
-
|
| 43 |
-
grad.Interface(
|
| 44 |
-
theme=dark,
|
| 45 |
-
fn=generate,
|
| 46 |
inputs=txt,
|
| 47 |
outputs=out,
|
| 48 |
examples=examples,
|
|
@@ -51,6 +49,8 @@ grad.Interface(css=css,
|
|
| 51 |
article='',
|
| 52 |
allow_flagging='never',
|
| 53 |
cache_examples=False,
|
| 54 |
-
theme="
|
|
|
|
|
|
|
| 55 |
|
| 56 |
|
|
|
|
| 39 |
|
| 40 |
title = "Stable Diffusion Prompt Generator"
|
| 41 |
description = 'This is a demo of the model series: "MagicPrompt", in this case, aimed at: "Stable Diffusion". To use it, simply submit your text or click on one of the examples. To learn more about the model, [click here](https://huggingface.co/Gustavosta/MagicPrompt-Stable-Diffusion).<br>'
|
| 42 |
+
with gr.Blocks(css=css) as demo:
|
| 43 |
+
grad.Interface(fn=generate,
|
|
|
|
|
|
|
| 44 |
inputs=txt,
|
| 45 |
outputs=out,
|
| 46 |
examples=examples,
|
|
|
|
| 49 |
article='',
|
| 50 |
allow_flagging='never',
|
| 51 |
cache_examples=False,
|
| 52 |
+
theme="dark")
|
| 53 |
+
|
| 54 |
+
demo.launch(enable_queue=True, debug=True)
|
| 55 |
|
| 56 |
|