File size: 357 Bytes
a2304c4
b2d4bc2
 
a2304c4
b2d4bc2
e98dfc2
 
b2d4bc2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import streamlit as st
import os
from dotenv import load_dotenv

# Charger les variables d'environnement
os.system("pip install python-dotenv")

load_dotenv()

# Exemple : clé API
api_token = os.getenv("API_TOKEN")

st.title("Streamkit")
st.write("Bienvenue sur Streamkit!")
st.write("Clé API chargée : ", api_token if api_token else "Non configurée.")