Spaces:
Running
Running
model-servive-api-added requirements.txt
Browse files- main.py +0 -3
- requirements.txt +4 -0
main.py
CHANGED
|
@@ -1,13 +1,10 @@
|
|
| 1 |
-
import asyncio
|
| 2 |
import aiohttp
|
| 3 |
import logging
|
| 4 |
from typing import List, Dict, Optional
|
| 5 |
from fastapi import FastAPI, HTTPException, Query
|
| 6 |
from fastapi.responses import JSONResponse
|
| 7 |
-
import uvicorn
|
| 8 |
from pydantic import BaseModel
|
| 9 |
from datetime import datetime, timedelta
|
| 10 |
-
import json
|
| 11 |
|
| 12 |
# Setup logging
|
| 13 |
logging.basicConfig(
|
|
|
|
|
|
|
| 1 |
import aiohttp
|
| 2 |
import logging
|
| 3 |
from typing import List, Dict, Optional
|
| 4 |
from fastapi import FastAPI, HTTPException, Query
|
| 5 |
from fastapi.responses import JSONResponse
|
|
|
|
| 6 |
from pydantic import BaseModel
|
| 7 |
from datetime import datetime, timedelta
|
|
|
|
| 8 |
|
| 9 |
# Setup logging
|
| 10 |
logging.basicConfig(
|
requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
aiohttp==3.11.13
|
| 2 |
+
uvicorn==0.34.0
|
| 3 |
+
fastapi==0.115.5
|
| 4 |
+
pydantic==2.10.3
|