How to generate a image in command line mode? #1349
inspire-boy
started this conversation in
General
Replies: 1 comment
-
this error because streamlit init variables when bootstrap. you run python xxx instead of streamlit run main.py, so st.session_state dict is empty. that is why this exception raised. you could fix this simply by these steps:
If this help you, please accept this answer, thank you @inspire-boy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to generate a image in command line mode?
I want to use webui to make a APi, like this
python script/txt2img --prompt "a god in street."
, But some error raisedKeyError: 'st.session_state has no key "defaults". Did you forget to initialize it? More info: https://docs.streamlit.io/library/advanced-features/session-state#initialization'
Beta Was this translation helpful? Give feedback.
All reactions