admin08077 commited on
Commit
f09dd60
·
verified ·
1 Parent(s): 6e3e70f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,14 +38,14 @@ st.sidebar.subheader("📚 Database Configuration")
38
  db_type = st.sidebar.selectbox("Select Database Type", ("SQLite", "PostgreSQL"))
39
 
40
  if db_type == "SQLite":
41
- sqlite_db_path = st.sidebar.text_input("SQLite Database File Path", value="citibank_ai_crypto.db")
42
  DATABASE_URI = f"sqlite:///{sqlite_db_path}"
43
  elif db_type == "PostgreSQL":
44
  pg_host = st.sidebar.text_input("PostgreSQL Host", value="localhost")
45
  pg_port = st.sidebar.number_input("PostgreSQL Port", min_value=1, max_value=65535, value=5432)
46
  pg_user = st.sidebar.text_input("PostgreSQL Username", value="postgres")
47
  pg_password = st.sidebar.text_input("PostgreSQL Password", type="password")
48
- pg_db = st.sidebar.text_input("PostgreSQL Database Name", value="citibank_ai_crypto")
49
  DATABASE_URI = f"postgresql://{pg_user}:{pg_password}@{pg_host}:{pg_port}/{pg_db}"
50
 
51
  # Blockchain Configuration
 
38
  db_type = st.sidebar.selectbox("Select Database Type", ("SQLite", "PostgreSQL"))
39
 
40
  if db_type == "SQLite":
41
+ sqlite_db_path = st.sidebar.text_input("SQLite Database File Path", value="citibank_demo_business_inc_ai_crypto.db")
42
  DATABASE_URI = f"sqlite:///{sqlite_db_path}"
43
  elif db_type == "PostgreSQL":
44
  pg_host = st.sidebar.text_input("PostgreSQL Host", value="localhost")
45
  pg_port = st.sidebar.number_input("PostgreSQL Port", min_value=1, max_value=65535, value=5432)
46
  pg_user = st.sidebar.text_input("PostgreSQL Username", value="postgres")
47
  pg_password = st.sidebar.text_input("PostgreSQL Password", type="password")
48
+ pg_db = st.sidebar.text_input("PostgreSQL Database Name", value="citibank_demo_business_inc_ai_crypto")
49
  DATABASE_URI = f"postgresql://{pg_user}:{pg_password}@{pg_host}:{pg_port}/{pg_db}"
50
 
51
  # Blockchain Configuration