Spaces:
Running
Running
Fix: use index_v2.html as main UI file
Browse files- ai_runtime_patch_fast.py +1 -1
ai_runtime_patch_fast.py
CHANGED
|
@@ -666,7 +666,7 @@ setInterval(()=>{patchArticle();patchShortBtns();patchOldSourceLinks();},1500);
|
|
| 666 |
|
| 667 |
@app.get('/')
|
| 668 |
async def _index():
|
| 669 |
-
html=open('/app/static/
|
| 670 |
body=getattr(rt.old,'PATCH_INJECT','')+f5.f4.f3.f2.f1.FINAL_INJECT+f5.f4.f3.FINAL3_INJECT+f5.f4.FINAL4_INJECT+f5.FINAL5_INJECT
|
| 671 |
body+=getattr(f6,'FINAL6_INJECT','');body+=getattr(f6,'FINAL6_FAST_HOME_INJECT','');body+=getattr(f6,'FINAL6E_INJECT','')
|
| 672 |
body+=PATCH_INJECT
|
|
|
|
| 666 |
|
| 667 |
@app.get('/')
|
| 668 |
async def _index():
|
| 669 |
+
html=open('/app/static/index_v2.html','r',encoding='utf-8').read() if os.path.exists('/app/static/index_v2.html') else ('<html><body>VNEWS</body></html>' if os.path.exists('/app/static/index.html') else '')
|
| 670 |
body=getattr(rt.old,'PATCH_INJECT','')+f5.f4.f3.f2.f1.FINAL_INJECT+f5.f4.f3.FINAL3_INJECT+f5.f4.FINAL4_INJECT+f5.FINAL5_INJECT
|
| 671 |
body+=getattr(f6,'FINAL6_INJECT','');body+=getattr(f6,'FINAL6_FAST_HOME_INJECT','');body+=getattr(f6,'FINAL6E_INJECT','')
|
| 672 |
body+=PATCH_INJECT
|