minhpng commited on
Commit
184461c
·
1 Parent(s): 9c68228

change cache folder

Browse files
Files changed (5) hide show
  1. .dockerignore +2 -0
  2. .gitignore +3 -1
  3. app.py +2 -0
  4. libs/__init__.py +0 -0
  5. routers/__init__.py +0 -0
.dockerignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .venv
2
+ cached
.gitignore CHANGED
@@ -159,4 +159,6 @@ cython_debug/
159
  # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
  # and can be added to the global gitignore or merged into this file. For a more nuclear
161
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
- #.idea/
 
 
 
159
  # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
  # and can be added to the global gitignore or merged into this file. For a more nuclear
161
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
+ #.idea/
163
+
164
+ cached
app.py CHANGED
@@ -1,9 +1,11 @@
1
  import uvicorn
 
2
  from fastapi import FastAPI
3
  from fastapi.middleware.cors import CORSMiddleware
4
 
5
  from routers import get_transcript
6
 
 
7
 
8
  app = FastAPI()
9
 
 
1
  import uvicorn
2
+ import os
3
  from fastapi import FastAPI
4
  from fastapi.middleware.cors import CORSMiddleware
5
 
6
  from routers import get_transcript
7
 
8
+ os.environ['HF_HOME'] = "./cached/"
9
 
10
  app = FastAPI()
11
 
libs/__init__.py ADDED
File without changes
routers/__init__.py ADDED
File without changes