Spaces:
Running
Running
Update app/app.py
Browse files- app/app.py +8 -3
app/app.py
CHANGED
@@ -18,10 +18,15 @@ from fastapi import FastAPI, Request
|
|
18 |
from fastapi.responses import HTMLResponse, StreamingResponse
|
19 |
from fastapi.templating import Jinja2Templates
|
20 |
|
21 |
-
#
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
24 |
from newsapi import NewsApiClient
|
|
|
|
|
25 |
|
26 |
# --- Application Lifespan for Resource Management ---
|
27 |
|
|
|
18 |
from fastapi.responses import HTMLResponse, StreamingResponse
|
19 |
from fastapi.templating import Jinja2Templates
|
20 |
|
21 |
+
# ====================================================================
|
22 |
+
# FIX APPLIED HERE
|
23 |
+
# ====================================================================
|
24 |
+
# Use relative imports because these modules are in the same 'app' package.
|
25 |
+
from .price_fetcher import PriceFetcher
|
26 |
+
from .gemini_analyzer import GeminiAnalyzer
|
27 |
from newsapi import NewsApiClient
|
28 |
+
# ====================================================================
|
29 |
+
|
30 |
|
31 |
# --- Application Lifespan for Resource Management ---
|
32 |
|