Dagfinn1962 commited on
Commit
3414407
·
verified ·
1 Parent(s): 5054e45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -39,7 +39,7 @@ 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
- with gr.Blocks(css=css) as demo:
43
  grad.Interface(fn=generate,
44
  inputs=txt,
45
  outputs=out,
@@ -49,8 +49,6 @@ grad.Interface(fn=generate,
49
  article='',
50
  allow_flagging='never',
51
  cache_examples=False,
52
- theme="dark")
53
-
54
- demo.launch(enable_queue=True, debug=True)
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
+
43
  grad.Interface(fn=generate,
44
  inputs=txt,
45
  outputs=out,
 
49
  article='',
50
  allow_flagging='never',
51
  cache_examples=False,
52
+ theme="dark").launch(enable_queue=True, debug=True)
 
 
53
 
54