Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -273,8 +273,8 @@ def compose_clevr_objects(prompt, guidance_scale):
|
|
273 |
return out_img
|
274 |
|
275 |
|
276 |
-
def compose(prompt,
|
277 |
-
if
|
278 |
return compose_language_descriptions(prompt, guidance_scale)
|
279 |
else:
|
280 |
return compose_clevr_objects(prompt, guidance_scale)
|
|
|
273 |
return out_img
|
274 |
|
275 |
|
276 |
+
def compose(prompt, version, guidance_scale):
|
277 |
+
if version == 'GLIDE':
|
278 |
return compose_language_descriptions(prompt, guidance_scale)
|
279 |
else:
|
280 |
return compose_clevr_objects(prompt, guidance_scale)
|