Clean up unused files and code
Browse files- app.py +3 -12
- data/processed +0 -0
- data/raw +0 -0
- src/utils.py +0 -0
app.py
CHANGED
@@ -13,18 +13,9 @@ module_path = os.path.abspath(os.path.join('.'))
|
|
13 |
if (module_path not in sys.path):
|
14 |
sys.path.append(module_path)
|
15 |
|
16 |
-
# Import functions
|
17 |
-
|
18 |
-
|
19 |
-
from src.sentiment_analyzer import analyze_sentiment
|
20 |
-
except ImportError as e:
|
21 |
-
# Handle error gracefully if run from a different directory or modules missing
|
22 |
-
print(f"Error importing modules from src: {e}. Ensure app.py is in the project root and src/* exists.")
|
23 |
-
# Define dummy functions if imports fail, so Gradio interface can still load
|
24 |
-
def get_stock_data(*args, **kwargs): return None
|
25 |
-
def get_news_articles(*args, **kwargs): return None
|
26 |
-
def analyze_sentiment(*args, **kwargs): return None, None, None
|
27 |
-
def load_api_keys(): return None, None
|
28 |
|
29 |
|
30 |
# --- Data Fetching and Processing Logic ---
|
|
|
13 |
if (module_path not in sys.path):
|
14 |
sys.path.append(module_path)
|
15 |
|
16 |
+
# Import functions directly (removed try/except block)
|
17 |
+
from src.data_fetcher import get_stock_data, get_news_articles, load_api_keys
|
18 |
+
from src.sentiment_analyzer import analyze_sentiment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
|
21 |
# --- Data Fetching and Processing Logic ---
|
data/processed
DELETED
File without changes
|
data/raw
DELETED
File without changes
|
src/utils.py
DELETED
File without changes
|