File size: 309 Bytes
9756872
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import subprocess
import streamlit as st
import requests

# Run Flask server in the background
subprocess.Popen(["python", "flask_app.py"])

# Streamlit UI acting as a bridge
st.title("My Web App")
st.markdown('<iframe src="http://127.0.0.1:5000" width="100%" height="600"></iframe>', unsafe_allow_html=True)