Ah! Looks like you cannot just print to the console in streamlit community cloud, but you can use os.write instead.
print
os.write