S6six commited on
Commit
1ef658c
·
1 Parent(s): 0c9d374

Clean up unused files and code

Browse files
Files changed (4) hide show
  1. app.py +3 -12
  2. data/processed +0 -0
  3. data/raw +0 -0
  4. 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 from your src directory
17
- try:
18
- from src.data_fetcher import get_stock_data, get_news_articles, load_api_keys
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