Hi - maybe this thread will help:

  
    
    
    Correct html content-type for Streamlit? Deploying Streamlit
  
  
    Hey guys, 
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('…
  


Arvindra