Spaces:
Paused
Paused
Update tenbin2api.py
Browse files- tenbin2api.py +8 -0
tenbin2api.py
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import json
|
| 2 |
import os
|
| 3 |
import time
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI()
|
| 4 |
+
|
| 5 |
+
@app.get("/health")
|
| 6 |
+
def health_check():
|
| 7 |
+
return {"status": "ok"}
|
| 8 |
+
|
| 9 |
import json
|
| 10 |
import os
|
| 11 |
import time
|