Spaces:
Runtime error
Runtime error
Download app.py from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/app.py
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/app.py
-
curl -L -o app.py https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/app.py
309 Bytes
| 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) | |