Spaces:
Runtime error
Runtime error
trying none as an input
Browse files
app.py
CHANGED
@@ -42,13 +42,10 @@ sub = st.sidebar.selectbox(
|
|
42 |
)
|
43 |
|
44 |
st.sidebar.title("Write a Custom Prompt")
|
45 |
-
cap_prompt = st.text_input(
|
46 |
"Leave this blank for an unbiased caption",
|
47 |
-
value=
|
48 |
)
|
49 |
-
st.write("=====================")
|
50 |
-
st.write(cap_prompt)
|
51 |
-
st.write("=====================")
|
52 |
|
53 |
if st.sidebar.button("Random Sample Image"):
|
54 |
random_image = get_rand_img(sample_images)
|
|
|
42 |
)
|
43 |
|
44 |
st.sidebar.title("Write a Custom Prompt")
|
45 |
+
cap_prompt = st.sidebar.text_input(
|
46 |
"Leave this blank for an unbiased caption",
|
47 |
+
value=None
|
48 |
)
|
|
|
|
|
|
|
49 |
|
50 |
if st.sidebar.button("Random Sample Image"):
|
51 |
random_image = get_rand_img(sample_images)
|