Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -236,17 +236,7 @@ for x in range(8):
|
|
236 |
|
237 |
# title = "Stable Diffusion Prompt Generator"
|
238 |
# 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>'
|
239 |
-
|
240 |
-
text_gen = grad.Interface(fn=generate,
|
241 |
-
inputs=txt,
|
242 |
-
outputs=out,
|
243 |
-
examples=examples,
|
244 |
-
title=title,
|
245 |
-
description=description,
|
246 |
-
article='',
|
247 |
-
allow_flagging='never',
|
248 |
-
cache_examples=False,
|
249 |
-
theme="default").launch(enable_queue=True, debug=True)
|
250 |
# text_gen = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
251 |
|
252 |
models2 = []
|
@@ -257,6 +247,16 @@ for model in models:
|
|
257 |
|
258 |
|
259 |
def text_it(inputs, text_gen=text_gen):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
return text_gen(inputs)
|
261 |
|
262 |
|
|
|
236 |
|
237 |
# title = "Stable Diffusion Prompt Generator"
|
238 |
# 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>'
|
239 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
# text_gen = gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
241 |
|
242 |
models2 = []
|
|
|
247 |
|
248 |
|
249 |
def text_it(inputs, text_gen=text_gen):
|
250 |
+
return grad.Interface(fn=generate,
|
251 |
+
inputs=inputs,
|
252 |
+
outputs=out,
|
253 |
+
examples=examples,
|
254 |
+
title=title,
|
255 |
+
description=description,
|
256 |
+
article='',
|
257 |
+
allow_flagging='never',
|
258 |
+
cache_examples=False,
|
259 |
+
theme="default").launch(enable_queue=True, debug=True)
|
260 |
return text_gen(inputs)
|
261 |
|
262 |
|