trohith89 commited on
Commit
8f1a514
·
verified ·
1 Parent(s): a805a12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -1,4 +1,11 @@
 
1
  import streamlit as st
 
 
 
 
 
 
2
  import networkx as nx
3
  import pandas as pd
4
  import numpy as np
@@ -15,10 +22,7 @@ from keras.losses import MeanSquaredError, BinaryCrossentropy
15
  from keras.regularizers import l2, l1
16
  from keras.callbacks import Callback
17
 
18
- # Set page config as the first Streamlit command
19
- st.set_page_config(layout="wide")
20
-
21
- # Check TensorFlow and Keras versions with fallback (after set_page_config)
22
  try:
23
  tf_version = tf.__version__
24
  # Try multiple ways to get Keras version, accounting for TensorFlow integration
 
1
+ # Set page config as the very first command
2
  import streamlit as st
3
+ st.set_page_config(layout="wide")
4
+
5
+ # Debug: Check for any unexpected Streamlit commands or state before this point
6
+ st.write("Starting app with page config set as first command.")
7
+
8
+ # Imports (after set_page_config)
9
  import networkx as nx
10
  import pandas as pd
11
  import numpy as np
 
22
  from keras.regularizers import l2, l1
23
  from keras.callbacks import Callback
24
 
25
+ # Check TensorFlow and Keras versions with fallback
 
 
 
26
  try:
27
  tf_version = tf.__version__
28
  # Try multiple ways to get Keras version, accounting for TensorFlow integration