First of all, sorry if this isn’t the appropriate place, but after browsing other forums for a couple of hours, I’m yet to find a solution.
Basically, I have an Apache Server set up in a CentOS machine, where I’m trying to host a streamlit app. For testing purposes, lets assume this is the script:
#!/usr/bin/python3 print("Content-Type: text/plain;charset=utf-8 \n\n") import streamlit as st def main(): print("Hello World") a = 2 print("\nthe value of a is ", a) st.write('streamlit dummy message') if st.button('First Button'): print('1 - button pressed') b = a + 2 print("\n the value of b is ", b) if __name__ == '__main__': main()
But when accessing the respective page, all i see is:
Basically, anything non-streamlit renders normally, while streamlit related commands like button or write provide no output whatsoever.
I tried changing the content-type in the html parameters to application or so, but nothing worked so far.
Also, i must admit I’m quite a beginner in terms of web-hosting so that might be the cause of the problem (and again, sorry for asking this in the wrong place).
Also related, my httpd.confi file for this particular script:
If there’s any help you can give I’d be forever in your doubt.
And if there’s more info you need, please don’t hesitate.