Spaces:
Running
Running
Upload app_v2_entry_test.py with huggingface_hub
Browse files- app_v2_entry_test.py +16 -0
app_v2_entry_test.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
VNEWS App v2 - Main application with match detail API
|
| 3 |
+
"""
|
| 4 |
+
import os, json, re, time, asyncio, hashlib, logging, threading, importlib, sys
|
| 5 |
+
from datetime import datetime, timezone, timedelta
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Optional
|
| 8 |
+
|
| 9 |
+
import httpx
|
| 10 |
+
import requests
|
| 11 |
+
from fastapi import FastAPI, HTTPException, Query
|
| 12 |
+
from fastapi.responses import JSONResponse, FileResponse, HTMLResponse
|
| 13 |
+
from fastapi.staticfiles import StaticFiles
|
| 14 |
+
from fastapi.templating import Jinja2Templates
|
| 15 |
+
|
| 16 |
+
# ... (rest of app_v2_entry.py content)
|