Download streamlit_app/app_streamlit.py from manoj112025/StreamLitExtraLearnFrontendModel: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/spaces/manoj112025/StreamLitExtraLearnFrontendModel/resolve/main/streamlit_app/app_streamlit.py
- Command line
-
hf download hf://spaces/manoj112025/StreamLitExtraLearnFrontendModel/streamlit_app/app_streamlit.py
-
curl -L -o app_streamlit.py https://huggingface.co/spaces/manoj112025/StreamLitExtraLearnFrontendModel/resolve/main/streamlit_app/app_streamlit.py
837 Bytes
| import os | |
| import json | |
| import time | |
| import pandas as pd | |
| import streamlit as st | |
| import requests | |
| # ----------------------------------------------------- | |
| # MUST COME FIRST BEFORE ANY OTHER STREAMLIT COMMAND | |
| # ----------------------------------------------------- | |
| st.set_page_config( | |
| page_title="ExtraaLearn – Lead Conversion", | |
| page_icon="📈", | |
| layout="wide" | |
| ) | |
| # ----------------------------------------------------- | |
| # Backend API URL (from HF Environment Variable) | |
| # ----------------------------------------------------- | |
| BACKEND_URL = os.getenv("BACKEND_URL", "").rstrip("/") | |
| if not BACKEND_URL: | |
| st.warning( | |
| "⚠️ BACKEND_URL is not set. Set an environment variable BACKEND_URL " | |
| "to your backend Space URL (without trailing slash). " | |
| "Example: https://<username>-<backendspace>.hf.space" | |
| ) |