Spaces:
Build error
Build error
Ronio Jerico Roque commited on
Commit ·
2a933b6
1
Parent(s): d14f99d
Fix: removed dialogue box pop up when file upload element is empty
Browse files- classes/Off_Page.py +0 -1
- classes/On_Page_Crawl.py +1 -5
- classes/On_Page_GT.py +1 -5
- classes/Seo.py +1 -4
- classes/Seo_Backlinks.py +3 -6
- classes/Social_Media_FB.py +1 -3
classes/Off_Page.py
CHANGED
|
@@ -10,7 +10,6 @@ from helper.upload_File import uploadFile
|
|
| 10 |
from helper.button_behaviour import hide_button, unhide_button
|
| 11 |
from helper.initialize_analyze_session import initialize_analyze_session
|
| 12 |
import pandas as pd
|
| 13 |
-
from helper.analyze import analyze_button
|
| 14 |
|
| 15 |
class SeoOffPageAnalyst:
|
| 16 |
def __init__(self, model_url):
|
|
|
|
| 10 |
from helper.button_behaviour import hide_button, unhide_button
|
| 11 |
from helper.initialize_analyze_session import initialize_analyze_session
|
| 12 |
import pandas as pd
|
|
|
|
| 13 |
|
| 14 |
class SeoOffPageAnalyst:
|
| 15 |
def __init__(self, model_url):
|
classes/On_Page_Crawl.py
CHANGED
|
@@ -8,7 +8,6 @@ from helper.upload_File import uploadFile
|
|
| 8 |
from helper.button_behaviour import hide_button, unhide_button
|
| 9 |
from helper.initialize_analyze_session import initialize_analyze_session
|
| 10 |
import pandas as pd
|
| 11 |
-
from helper.analyze import analyze_button
|
| 12 |
|
| 13 |
class SeoOnCrawl:
|
| 14 |
def __init__(self, model_url):
|
|
@@ -148,10 +147,7 @@ class SeoOnCrawl:
|
|
| 148 |
if 'analyze' not in st.session_state:
|
| 149 |
st.session_state['analyze'] = ''
|
| 150 |
st.session_state['analyze'] == ''
|
| 151 |
-
|
| 152 |
-
else:
|
| 153 |
-
st.info("Please upload CSV or PDF files first.")
|
| 154 |
-
unhide_button()
|
| 155 |
|
| 156 |
if __name__ == "__main__":
|
| 157 |
st.set_page_config(layout="wide")
|
|
|
|
| 8 |
from helper.button_behaviour import hide_button, unhide_button
|
| 9 |
from helper.initialize_analyze_session import initialize_analyze_session
|
| 10 |
import pandas as pd
|
|
|
|
| 11 |
|
| 12 |
class SeoOnCrawl:
|
| 13 |
def __init__(self, model_url):
|
|
|
|
| 147 |
if 'analyze' not in st.session_state:
|
| 148 |
st.session_state['analyze'] = ''
|
| 149 |
st.session_state['analyze'] == ''
|
| 150 |
+
|
|
|
|
|
|
|
|
|
|
| 151 |
|
| 152 |
if __name__ == "__main__":
|
| 153 |
st.set_page_config(layout="wide")
|
classes/On_Page_GT.py
CHANGED
|
@@ -8,7 +8,6 @@ from helper.upload_File import uploadFile
|
|
| 8 |
from helper.button_behaviour import hide_button, unhide_button
|
| 9 |
from helper.initialize_analyze_session import initialize_analyze_session
|
| 10 |
import pandas as pd
|
| 11 |
-
from helper.analyze import analyze_button
|
| 12 |
|
| 13 |
class SeoOnGT:
|
| 14 |
def __init__(self, model_url):
|
|
@@ -150,10 +149,7 @@ class SeoOnGT:
|
|
| 150 |
if 'analyze' not in st.session_state:
|
| 151 |
st.session_state['analyze'] = ''
|
| 152 |
st.session_state['analyze'] == ''
|
| 153 |
-
|
| 154 |
-
else:
|
| 155 |
-
st.info("Please upload CSV or PDF files first.")
|
| 156 |
-
unhide_button()
|
| 157 |
|
| 158 |
if __name__ == "__main__":
|
| 159 |
st.set_page_config(layout="wide")
|
|
|
|
| 8 |
from helper.button_behaviour import hide_button, unhide_button
|
| 9 |
from helper.initialize_analyze_session import initialize_analyze_session
|
| 10 |
import pandas as pd
|
|
|
|
| 11 |
|
| 12 |
class SeoOnGT:
|
| 13 |
def __init__(self, model_url):
|
|
|
|
| 149 |
if 'analyze' not in st.session_state:
|
| 150 |
st.session_state['analyze'] = ''
|
| 151 |
st.session_state['analyze'] == ''
|
| 152 |
+
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
if __name__ == "__main__":
|
| 155 |
st.set_page_config(layout="wide")
|
classes/Seo.py
CHANGED
|
@@ -292,10 +292,7 @@ class Seo:
|
|
| 292 |
for others in st.session_state.keys():
|
| 293 |
del st.session_state[others]
|
| 294 |
|
| 295 |
-
st.session_state['analyzing'] = False
|
| 296 |
-
else:
|
| 297 |
-
st.info("Please upload CSV or PDF files first.")
|
| 298 |
-
hide_button()
|
| 299 |
|
| 300 |
if __name__ == "__main__":
|
| 301 |
st.set_page_config(layout="wide")
|
|
|
|
| 292 |
for others in st.session_state.keys():
|
| 293 |
del st.session_state[others]
|
| 294 |
|
| 295 |
+
st.session_state['analyzing'] = False
|
|
|
|
|
|
|
|
|
|
| 296 |
|
| 297 |
if __name__ == "__main__":
|
| 298 |
st.set_page_config(layout="wide")
|
classes/Seo_Backlinks.py
CHANGED
|
@@ -288,8 +288,8 @@ class SeoBacklinks:
|
|
| 288 |
|
| 289 |
collect_telemetry(debug_info)
|
| 290 |
|
| 291 |
-
with st.expander("Debug information", icon="⚙"):
|
| 292 |
-
|
| 293 |
|
| 294 |
for df_traffic in st.session_state.keys():
|
| 295 |
del st.session_state[df_traffic]
|
|
@@ -298,10 +298,7 @@ class SeoBacklinks:
|
|
| 298 |
for others in st.session_state.keys():
|
| 299 |
del st.session_state[others]
|
| 300 |
|
| 301 |
-
st.session_state['analyzing'] = False
|
| 302 |
-
else:
|
| 303 |
-
st.info("Please upload CSV or PDF files first.")
|
| 304 |
-
hide_button()
|
| 305 |
|
| 306 |
if __name__ == "__main__":
|
| 307 |
st.set_page_config(layout="wide")
|
|
|
|
| 288 |
|
| 289 |
collect_telemetry(debug_info)
|
| 290 |
|
| 291 |
+
#with st.expander("Debug information", icon="⚙"):
|
| 292 |
+
# st.write(debug_info)
|
| 293 |
|
| 294 |
for df_traffic in st.session_state.keys():
|
| 295 |
del st.session_state[df_traffic]
|
|
|
|
| 298 |
for others in st.session_state.keys():
|
| 299 |
del st.session_state[others]
|
| 300 |
|
| 301 |
+
st.session_state['analyzing'] = False
|
|
|
|
|
|
|
|
|
|
| 302 |
|
| 303 |
if __name__ == "__main__":
|
| 304 |
st.set_page_config(layout="wide")
|
classes/Social_Media_FB.py
CHANGED
|
@@ -246,9 +246,7 @@ class Facebook:
|
|
| 246 |
del st.session_state[facebook_ad_campaign]
|
| 247 |
|
| 248 |
st.session_state['analyzing'] = False
|
| 249 |
-
|
| 250 |
-
st.info("Please upload CSV or PDF files first.")
|
| 251 |
-
hide_button()
|
| 252 |
except AttributeError:
|
| 253 |
st.info("Please upload CSV or PDF files first.")
|
| 254 |
hide_button()
|
|
|
|
| 246 |
del st.session_state[facebook_ad_campaign]
|
| 247 |
|
| 248 |
st.session_state['analyzing'] = False
|
| 249 |
+
|
|
|
|
|
|
|
| 250 |
except AttributeError:
|
| 251 |
st.info("Please upload CSV or PDF files first.")
|
| 252 |
hide_button()
|