Spaces:
Build error
Build error
Ronio Jerico Roque commited on
Commit ·
bbb39ae
1
Parent(s): 986cd95
Fix: Remove debug print statements and update run_analysis to be asynchronous
Browse files- classes/Off_Page.py +0 -2
- classes/Seo.py +0 -1
- pages/home.py +1 -1
classes/Off_Page.py
CHANGED
|
@@ -70,7 +70,6 @@ class SeoOffPageAnalyst:
|
|
| 70 |
return output
|
| 71 |
|
| 72 |
def process(self):
|
| 73 |
-
print("init off page")
|
| 74 |
start_time = time.time()
|
| 75 |
session = st.session_state['analyze']
|
| 76 |
if self.uploaded_files and session == 'clicked':
|
|
@@ -109,7 +108,6 @@ class SeoOffPageAnalyst:
|
|
| 109 |
|
| 110 |
#with st.expander("Debug information", icon="⚙"):
|
| 111 |
# st.write(debug_info)
|
| 112 |
-
print("done2")
|
| 113 |
st.session_state['analyzing'] = False
|
| 114 |
|
| 115 |
def row1(self):
|
|
|
|
| 70 |
return output
|
| 71 |
|
| 72 |
def process(self):
|
|
|
|
| 73 |
start_time = time.time()
|
| 74 |
session = st.session_state['analyze']
|
| 75 |
if self.uploaded_files and session == 'clicked':
|
|
|
|
| 108 |
|
| 109 |
#with st.expander("Debug information", icon="⚙"):
|
| 110 |
# st.write(debug_info)
|
|
|
|
| 111 |
st.session_state['analyzing'] = False
|
| 112 |
|
| 113 |
def row1(self):
|
classes/Seo.py
CHANGED
|
@@ -151,7 +151,6 @@ class Seo:
|
|
| 151 |
start_time = time.time()
|
| 152 |
|
| 153 |
session = st.session_state.analyze
|
| 154 |
-
print(session)
|
| 155 |
if (self.uploaded_file or self.others or self.uploaded_file_seo) and session == 'clicked':
|
| 156 |
combined_text = ""
|
| 157 |
seo_keywords = ""
|
|
|
|
| 151 |
start_time = time.time()
|
| 152 |
|
| 153 |
session = st.session_state.analyze
|
|
|
|
| 154 |
if (self.uploaded_file or self.others or self.uploaded_file_seo) and session == 'clicked':
|
| 155 |
combined_text = ""
|
| 156 |
seo_keywords = ""
|
pages/home.py
CHANGED
|
@@ -108,7 +108,7 @@ class DigitalFootprintDashboard:
|
|
| 108 |
async def main(self):
|
| 109 |
"""Main method to run the dashboard"""
|
| 110 |
await self.create_row1()
|
| 111 |
-
self.run_analysis()
|
| 112 |
|
| 113 |
# Main execution
|
| 114 |
if __name__ == "__main__":
|
|
|
|
| 108 |
async def main(self):
|
| 109 |
"""Main method to run the dashboard"""
|
| 110 |
await self.create_row1()
|
| 111 |
+
await self.run_analysis()
|
| 112 |
|
| 113 |
# Main execution
|
| 114 |
if __name__ == "__main__":
|