Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,21 +56,21 @@ async def health_check():
|
|
| 56 |
|
| 57 |
@app.get("/api/tags")
|
| 58 |
async def api_tags():
|
| 59 |
-
return {
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
}
|
| 74 |
|
| 75 |
@app.get("/models")
|
| 76 |
async def list_models():
|
|
|
|
| 56 |
|
| 57 |
@app.get("/api/tags")
|
| 58 |
async def api_tags():
|
| 59 |
+
return JSONResponse(content={
|
| 60 |
+
"models": [
|
| 61 |
+
{
|
| 62 |
+
"name": "phi-2",
|
| 63 |
+
"modified_at": "2025-06-01T00:00:00Z",
|
| 64 |
+
"size": 2147483648,
|
| 65 |
+
"digest": "sha256:placeholderdigest",
|
| 66 |
+
"details": {
|
| 67 |
+
"format": "gguf",
|
| 68 |
+
"family": "phi",
|
| 69 |
+
"families": ["phi"]
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
})
|
| 74 |
|
| 75 |
@app.get("/models")
|
| 76 |
async def list_models():
|