-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
47 lines (41 loc) · 1.73 KB
/
config.py
File metadata and controls
47 lines (41 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import os
import streamlit as st
from dotenv import load_dotenv
load_dotenv()
# Streamlit page configuration
st.set_page_config(page_title="AI Meetings and News Summarizer", layout="wide", page_icon="📝")
# Environment variables
GROQ_API_KEY = os.environ.get("GROQ_API_KEY", "YOUR_GROQ_API_KEY") # Replace with your API key
BASE_API_KEY = os.environ.get("BASE_API_KEY", "YOUR_BASE_API_KEY") # Replace with your API key
NEWS_API_KEY = os.environ.get("NEWS_API_KEY", "YOUR_NEWS_API_KEY") # News API key
# Monad blockchain configuration
DEPLOYER_PRIVATE_KEY = os.environ.get("DEPLOYER_PRIVATE_KEY", "")
MONAD_RPC_URL = os.environ.get("MONAD_RPC_URL", "https://testnet-rpc.monad.xyz/")
MONAD_CHAIN_ID = os.environ.get("MONAD_CHAIN_ID", "10143")
MONAD_EXPLORER_URL = os.environ.get("MONAD_EXPLORER_URL", "https://testnet.monadexplorer.com/")
# Language support dictionary
LANGUAGES = {
"English": "English",
"Spanish": "Spanish (Español)",
"French": "French (Français)",
"German": "German (Deutsch)",
"Italian": "Italian (Italiano)",
"Portuguese": "Portuguese (Português)",
"Indonesian": "Indonesian (Bahasa Indonesia)",
"Dutch": "Dutch (Nederlands)",
"Swedish": "Swedish (Svenska)",
"Norwegian": "Norwegian (Norsk)",
"Danish": "Danish (Dansk)",
"Finnish": "Finnish (Suomi)"
}
# Initialize session state variables
if 'user_authenticated' not in st.session_state:
st.session_state.user_authenticated = False
if 'user_id' not in st.session_state:
st.session_state.user_id = None
if 'is_pro' not in st.session_state:
st.session_state.is_pro = False
if 'users' not in st.session_state:
st.session_state.users = {}
if 'news_articles' not in st.session_state:
st.session_state.news_articles = []