Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
|
|
1 |
import os
|
|
|
|
|
|
|
2 |
import uuid
|
3 |
import yaml
|
4 |
import json
|
@@ -11,10 +15,6 @@ from fastapi.responses import JSONResponse
|
|
11 |
from huggingface_hub import hf_hub_download, whoami
|
12 |
|
13 |
|
14 |
-
import os
|
15 |
-
os.environ["HF_HOME"] = "/tmp/hf_cache"
|
16 |
-
os.makedirs("/tmp/hf_cache", exist_ok=True)
|
17 |
-
|
18 |
from fastapi import FastAPI, Query
|
19 |
from huggingface_hub import list_repo_files, hf_hub_download, upload_file
|
20 |
import io
|
|
|
1 |
+
|
2 |
import os
|
3 |
+
os.environ["HF_HOME"] = "/tmp/hf_cache"
|
4 |
+
os.makedirs("/tmp/hf_cache", exist_ok=True)
|
5 |
+
|
6 |
import uuid
|
7 |
import yaml
|
8 |
import json
|
|
|
15 |
from huggingface_hub import hf_hub_download, whoami
|
16 |
|
17 |
|
|
|
|
|
|
|
|
|
18 |
from fastapi import FastAPI, Query
|
19 |
from huggingface_hub import list_repo_files, hf_hub_download, upload_file
|
20 |
import io
|