Spaces:
Build error
Build error
Ronio Jerico Roque commited on
Commit ·
b916932
1
Parent(s): b231615
Add create_row2 method to display Ads, Amazon, and eBay sections in the dashboard
Browse files- pages/home.py +19 -1
pages/home.py
CHANGED
|
@@ -16,8 +16,10 @@ from classes.client_summary import CientSummary
|
|
| 16 |
from classes.pull_through_offers import PullThroughOffers
|
| 17 |
from classes.lld_pm_ln import LLD_PM_LN
|
| 18 |
from classes.content import Content
|
|
|
|
|
|
|
|
|
|
| 19 |
import asyncio
|
| 20 |
-
import time
|
| 21 |
from helper.upload_button import hide_button, unhide_button
|
| 22 |
|
| 23 |
class DigitalFootprintDashboard:
|
|
@@ -95,6 +97,21 @@ class DigitalFootprintDashboard:
|
|
| 95 |
|
| 96 |
return col1, col2, col3, col4
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
async def run_analysis(self):
|
| 99 |
result = await asyncio.gather(
|
| 100 |
self.gtmetrix.process(),
|
|
@@ -112,6 +129,7 @@ class DigitalFootprintDashboard:
|
|
| 112 |
async def main(self):
|
| 113 |
"""Main method to run the dashboard"""
|
| 114 |
await self.create_row1()
|
|
|
|
| 115 |
#self.run_analysis()
|
| 116 |
|
| 117 |
# Main execution
|
|
|
|
| 16 |
from classes.pull_through_offers import PullThroughOffers
|
| 17 |
from classes.lld_pm_ln import LLD_PM_LN
|
| 18 |
from classes.content import Content
|
| 19 |
+
from classes.sem_ppc import Sem_PPC
|
| 20 |
+
from classes.amazon import Amazon
|
| 21 |
+
from classes.ebay import eBay
|
| 22 |
import asyncio
|
|
|
|
| 23 |
from helper.upload_button import hide_button, unhide_button
|
| 24 |
|
| 25 |
class DigitalFootprintDashboard:
|
|
|
|
| 97 |
|
| 98 |
return col1, col2, col3, col4
|
| 99 |
|
| 100 |
+
async def create_row2(self):
|
| 101 |
+
"""Create the first row with four columns"""
|
| 102 |
+
col1, col2, col3, col4 = st.columns(4, border=True, gap="medium", vertical_alignment="top")
|
| 103 |
+
|
| 104 |
+
with col1:
|
| 105 |
+
st.write("## Ads")
|
| 106 |
+
self.sem_ppc = Sem_PPC(os.getenv('Model_SEM_PPC_Analyst'))
|
| 107 |
+
with col2:
|
| 108 |
+
st.write("## Amazon")
|
| 109 |
+
self.amazon = Amazon(os.getenv('Model_SEM_PPC_Analyst'))
|
| 110 |
+
with col3:
|
| 111 |
+
st.write("## eBay")
|
| 112 |
+
self.ebay = eBay(os.getenv('Model_SEM_PPC_Analyst'))
|
| 113 |
+
return col1, col2, col3
|
| 114 |
+
|
| 115 |
async def run_analysis(self):
|
| 116 |
result = await asyncio.gather(
|
| 117 |
self.gtmetrix.process(),
|
|
|
|
| 129 |
async def main(self):
|
| 130 |
"""Main method to run the dashboard"""
|
| 131 |
await self.create_row1()
|
| 132 |
+
await self.create_row2()
|
| 133 |
#self.run_analysis()
|
| 134 |
|
| 135 |
# Main execution
|