Spaces:
Running
Running
Fix: Suppress 'No secrets files found' warning message by adding global filter at the top of files
Browse files- advanced_scraper_ui.py +4 -1
- app.py +4 -0
advanced_scraper_ui.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import matplotlib.pyplot as plt
|
@@ -8,7 +12,6 @@ import json
|
|
8 |
from datetime import datetime
|
9 |
from dotenv import load_dotenv
|
10 |
from enhanced_scraper import EnhancedRedditScraper
|
11 |
-
import warnings
|
12 |
|
13 |
# Note: Page configuration and session state initialization are handled in app.py
|
14 |
|
|
|
1 |
+
# Add warning suppression at the very beginning before any other imports
|
2 |
+
import warnings
|
3 |
+
warnings.filterwarnings("ignore", message="No secrets files found.*")
|
4 |
+
|
5 |
import streamlit as st
|
6 |
import pandas as pd
|
7 |
import matplotlib.pyplot as plt
|
|
|
12 |
from datetime import datetime
|
13 |
from dotenv import load_dotenv
|
14 |
from enhanced_scraper import EnhancedRedditScraper
|
|
|
15 |
|
16 |
# Note: Page configuration and session state initialization are handled in app.py
|
17 |
|
app.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import os
|
3 |
from dotenv import load_dotenv
|
|
|
1 |
+
# Add warning suppression at the very beginning before any other imports
|
2 |
+
import warnings
|
3 |
+
warnings.filterwarnings("ignore", message="No secrets files found.*")
|
4 |
+
|
5 |
import streamlit as st
|
6 |
import os
|
7 |
from dotenv import load_dotenv
|