Spaces:
Runtime error
Runtime error
Logan Zoellner
commited on
Commit
·
d57bf64
1
Parent(s):
23f68f1
debug
Browse files
app.py
CHANGED
@@ -127,8 +127,9 @@ def desc_to_image_dalle(desc):
|
|
127 |
|
128 |
|
129 |
#img=iface(desc,model,aspect_ratio)[0]
|
130 |
-
|
131 |
-
|
|
|
132 |
|
133 |
demo = gr.Blocks()
|
134 |
|
@@ -139,6 +140,7 @@ with demo:
|
|
139 |
"<div>first input name, race and class (or generate them randomly)</div>"
|
140 |
"<div>Next, use GPT-J to generate a short description</div>"
|
141 |
"<div>Finally, Generate an illustration 🎨 provided by <a href=https://huggingface.co/spaces/multimodalart/latentdiffusion>Latent Diffusion model</a>.</div>"
|
|
|
142 |
)
|
143 |
|
144 |
with gr.Row():
|
|
|
127 |
|
128 |
|
129 |
#img=iface(desc,model,aspect_ratio)[0]
|
130 |
+
result=iface(desc,"Square","Realism")
|
131 |
+
print(f"result is: {result}")
|
132 |
+
return result[0]
|
133 |
|
134 |
demo = gr.Blocks()
|
135 |
|
|
|
140 |
"<div>first input name, race and class (or generate them randomly)</div>"
|
141 |
"<div>Next, use GPT-J to generate a short description</div>"
|
142 |
"<div>Finally, Generate an illustration 🎨 provided by <a href=https://huggingface.co/spaces/multimodalart/latentdiffusion>Latent Diffusion model</a>.</div>"
|
143 |
+
"<div>Or using <a href=https://huggingface.co/spaces/multimodalart/rudalle> Rudalle model</a>.</div>"
|
144 |
)
|
145 |
|
146 |
with gr.Row():
|