AJAY KASU commited on
Commit
e48894b
·
1 Parent(s): 502f466

Fix StreamlitAPIException by moving set_page_config to very top

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import streamlit as st
 
 
2
  import asyncio
3
  import pandas as pd
4
  from datetime import datetime, timezone
@@ -20,8 +22,6 @@ supabase = init_supabase()
20
  # We would import the live clients here, but for the dashboard
21
  # we can instantiate the scanner and populate it directly for testing.
22
 
23
- st.set_page_config(page_title="ArbIntel Scanner", layout="wide", page_icon="📈")
24
-
25
  if "capital" not in st.session_state:
26
  st.session_state.capital = 10000.00
27
  if "pnl" not in st.session_state:
 
1
  import streamlit as st
2
+ st.set_page_config(page_title="ArbIntel Scanner", layout="wide", page_icon="📈")
3
+
4
  import asyncio
5
  import pandas as pd
6
  from datetime import datetime, timezone
 
22
  # We would import the live clients here, but for the dashboard
23
  # we can instantiate the scanner and populate it directly for testing.
24
 
 
 
25
  if "capital" not in st.session_state:
26
  st.session_state.capital = 10000.00
27
  if "pnl" not in st.session_state: