update
Browse files- .gitignore +2 -0
- app.py +1 -1
.gitignore
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
# Environment variables
|
| 2 |
.env
|
| 3 |
.env.local
|
|
|
|
| 1 |
+
my_model_cache/
|
| 2 |
+
|
| 3 |
# Environment variables
|
| 4 |
.env
|
| 5 |
.env.local
|
app.py
CHANGED
|
@@ -43,7 +43,7 @@ async def startup_event():
|
|
| 43 |
async def read_root():
|
| 44 |
return {"message": "Welcome to HF-Model-Runner API! Visit /docs for API documentation."}
|
| 45 |
|
| 46 |
-
@app.post("/download")
|
| 47 |
async def download_model_endpoint(request: DownloadRequest):
|
| 48 |
"""
|
| 49 |
下载指定的 HuggingFace 模型
|
|
|
|
| 43 |
async def read_root():
|
| 44 |
return {"message": "Welcome to HF-Model-Runner API! Visit /docs for API documentation."}
|
| 45 |
|
| 46 |
+
@app.post("/v1/download")
|
| 47 |
async def download_model_endpoint(request: DownloadRequest):
|
| 48 |
"""
|
| 49 |
下载指定的 HuggingFace 模型
|