Commit ·
02c1f9e
1
Parent(s): 6515a1c
Fix: Port to 7860 and import paths
Browse files- News_Scraper/fake_news_scraper2.py +5 -2
- main.py +2 -2
News_Scraper/fake_news_scraper2.py
CHANGED
|
@@ -15,9 +15,12 @@ if project_root not in sys.path:
|
|
| 15 |
sys.path.insert(0, project_root)
|
| 16 |
|
| 17 |
try:
|
| 18 |
-
from
|
| 19 |
except ImportError:
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# --- CONFIGURATION ---
|
| 23 |
# Using the path from your Hackathon Trial folder
|
|
|
|
| 15 |
sys.path.insert(0, project_root)
|
| 16 |
|
| 17 |
try:
|
| 18 |
+
from Fact_Checker.main4_fast import PIBFactChecker
|
| 19 |
except ImportError:
|
| 20 |
+
try:
|
| 21 |
+
from Backend.Fact_Checker.main4_fast import PIBFactChecker
|
| 22 |
+
except ImportError:
|
| 23 |
+
print("⚠️ Still could not import PIBFactChecker.")
|
| 24 |
|
| 25 |
# --- CONFIGURATION ---
|
| 26 |
# Using the path from your Hackathon Trial folder
|
main.py
CHANGED
|
@@ -240,5 +240,5 @@ def automated_scraping():
|
|
| 240 |
|
| 241 |
if __name__ == "__main__":
|
| 242 |
import uvicorn
|
| 243 |
-
port = int(os.environ.get("PORT",
|
| 244 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
|
| 240 |
|
| 241 |
if __name__ == "__main__":
|
| 242 |
import uvicorn
|
| 243 |
+
port = int(os.environ.get("PORT", 7860))
|
| 244 |
+
uvicorn.run(app, host="0.0.0.0", port=port)
|