vxkyyy commited on
Commit
59de470
·
1 Parent(s): 5788d63

fix: updated app logic for cloud deployment and added GDS examples

Browse files
Files changed (2) hide show
  1. app.py +7 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -138,6 +138,13 @@ with col_h1:
138
  OPENLANE_ROOT = os.environ.get("OPENLANE_ROOT", os.path.expanduser("~/OpenLane"))
139
  DESIGNS_DIR = os.path.join(OPENLANE_ROOT, "designs")
140
 
 
 
 
 
 
 
 
141
  # Sidebar Navigation
142
  with st.sidebar:
143
  selected_page = option_menu(
 
138
  OPENLANE_ROOT = os.environ.get("OPENLANE_ROOT", os.path.expanduser("~/OpenLane"))
139
  DESIGNS_DIR = os.path.join(OPENLANE_ROOT, "designs")
140
 
141
+ # Deployment Fallback: Use local design/ folder if standard OpenLane path is missing
142
+ if not os.path.exists(DESIGNS_DIR):
143
+ local_designs = os.path.join(os.getcwd(), "designs")
144
+ if os.path.exists(local_designs):
145
+ OPENLANE_ROOT = os.getcwd()
146
+ DESIGNS_DIR = local_designs
147
+
148
  # Sidebar Navigation
149
  with st.sidebar:
150
  selected_page = option_menu(
requirements.txt CHANGED
@@ -8,3 +8,4 @@ pandas
8
  streamlit-option-menu
9
  plotly
10
  streamlit-ace
 
 
8
  streamlit-option-menu
9
  plotly
10
  streamlit-ace
11
+ gdstk