roniorque commited on
Commit
3b3ebe2
·
verified ·
1 Parent(s): 2541290

table layout (#13)

Browse files

- Comment out unused columns in create_row2 method and marketplace section in display_outputs (609864b603a85c95a0cfcbaf8de10dd0a3a91e34)

Files changed (2) hide show
  1. pages/home.py +9 -8
  2. pages/output.py +5 -6
pages/home.py CHANGED
@@ -116,21 +116,22 @@ class DigitalFootprintDashboard:
116
 
117
  async def create_row2(self):
118
  """Create the first row with four columns"""
119
- col1, col2, col3, col4 = st.columns(4, border=True, gap="medium", vertical_alignment="top")
 
120
 
121
  with col1:
122
  st.write("## Ads")
123
  self.sem_ppc = Sem_PPC(os.getenv('Model_SEM_PPC_Analyst'))
124
- with col2:
125
- st.write("## Amazon")
126
- self.amazon = Amazon(os.getenv('Model_SEM_PPC_Analyst'))
127
- with col3:
128
- st.write("## eBay")
129
- self.ebay = eBay(os.getenv('Model_SEM_PPC_Analyst'))
130
  with col4:
131
  st.write("## Website Content")
132
  self.content = Content(os.getenv('Model_Content'))
133
- return col1, col2, col3, col4
134
 
135
  async def delete_button(self):
136
  reset_button = st.button("RESET ALL",icon="🗑️", use_container_width=True)
 
116
 
117
  async def create_row2(self):
118
  """Create the first row with four columns"""
119
+ col1, col4 = st.columns(2, border=True, gap="medium", vertical_alignment="top")
120
+ # col1, col2, col3, col4 = st.columns(4, border=True, gap="medium", vertical_alignment="top")
121
 
122
  with col1:
123
  st.write("## Ads")
124
  self.sem_ppc = Sem_PPC(os.getenv('Model_SEM_PPC_Analyst'))
125
+ # with col2:
126
+ # st.write("## Amazon")
127
+ # self.amazon = Amazon(os.getenv('Model_SEM_PPC_Analyst'))
128
+ # with col3:
129
+ # st.write("## eBay")
130
+ # self.ebay = eBay(os.getenv('Model_SEM_PPC_Analyst'))
131
  with col4:
132
  st.write("## Website Content")
133
  self.content = Content(os.getenv('Model_Content'))
134
+ return col1, col4
135
 
136
  async def delete_button(self):
137
  reset_button = st.button("RESET ALL",icon="🗑️", use_container_width=True)
pages/output.py CHANGED
@@ -333,12 +333,11 @@ Regardless, it is still a great channel worth investing to improve a business’
333
  st.markdown("<a href='#top'>Go to top</a>", unsafe_allow_html=True)
334
  st.markdown("---")
335
 
336
- if (get_analyst_response("Marketplace Analyst")):
337
- st.markdown("### MARKET PLACE")
338
- marketpalce_data = get_analyst_response("Marketplace Analyst")
339
- write_table(marketpalce_data)
340
- st.markdown("<a href='#top'>Go to top</a>", unsafe_allow_html=True)
341
- st.markdown("---")
342
 
343
 
344
  st.markdown("## OTHER INFORMATION")
 
333
  st.markdown("<a href='#top'>Go to top</a>", unsafe_allow_html=True)
334
  st.markdown("---")
335
 
336
+ # if (get_analyst_response("Marketplace Analyst")):
337
+ # st.markdown("### MARKET PLACE")
338
+ # st.table(get_analyst_response("Marketplace Analyst"))
339
+ # st.markdown("<a href='#top'>Go to top</a>", unsafe_allow_html=True)
340
+ # st.markdown("---")
 
341
 
342
 
343
  st.markdown("## OTHER INFORMATION")