Spaces:
Running
Running
Upload app_v2_entry.py
Browse files- app_v2_entry.py +2 -1
app_v2_entry.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
"""VNEWS v2 Entry Point - with AI topics priority + SSE auto-update + hot topics fix"""
|
| 2 |
-
import sys, os, re
|
| 3 |
from main import app, HEADERS, BONGDA_HEADERS, fetch_bongda_api, HL_LEAGUES
|
| 4 |
|
| 5 |
try:
|
|
@@ -12,6 +12,7 @@ try:
|
|
| 12 |
except Exception as e:
|
| 13 |
print(f"[WARN] ai_patch import failed: {e}")
|
| 14 |
|
|
|
|
| 15 |
try:
|
| 16 |
import ai_runtime_patch_final
|
| 17 |
except Exception as e:
|
|
|
|
| 1 |
"""VNEWS v2 Entry Point - with AI topics priority + SSE auto-update + hot topics fix"""
|
| 2 |
+
import sys, os, re, json, time, threading, html as html_lib
|
| 3 |
from main import app, HEADERS, BONGDA_HEADERS, fetch_bongda_api, HL_LEAGUES
|
| 4 |
|
| 5 |
try:
|
|
|
|
| 12 |
except Exception as e:
|
| 13 |
print(f"[WARN] ai_patch import failed: {e}")
|
| 14 |
|
| 15 |
+
# Import patch module last
|
| 16 |
try:
|
| 17 |
import ai_runtime_patch_final
|
| 18 |
except Exception as e:
|