manoj112025's picture
Update app file
433f2f5
raw
history blame contribute delete
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"
)