Spaces:
Runtime error
Runtime error
is not -> != ; this should resolve error but unsure as to why this arose.
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ _, center, _ = st.columns([1, 10, 1])
|
|
114 |
with center:
|
115 |
st.image(show_image)
|
116 |
|
117 |
-
if sub is None and imageLoader.text_transform(cap_prompt)
|
118 |
st.write("Without a specified subreddit we default to /r/pics")
|
119 |
for i in range(num_captions):
|
120 |
gen_show_caption(sub, imageLoader.text_transform(cap_prompt))
|
|
|
114 |
with center:
|
115 |
st.image(show_image)
|
116 |
|
117 |
+
if sub is None and imageLoader.text_transform(cap_prompt) != "":
|
118 |
st.write("Without a specified subreddit we default to /r/pics")
|
119 |
for i in range(num_captions):
|
120 |
gen_show_caption(sub, imageLoader.text_transform(cap_prompt))
|