Sam Lai commited on
Commit
6ba8869
·
1 Parent(s): e2c4ddc

add gitignore, fix requirements

Browse files
Files changed (3) hide show
  1. .gitignore +2 -0
  2. app.py +3 -0
  3. requirements.txt +2 -2
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ __pycache__/
2
+ .env/
app.py CHANGED
@@ -1,4 +1,7 @@
1
  from fastapi import FastAPI
 
 
 
2
 
3
  app = FastAPI()
4
 
 
1
  from fastapi import FastAPI
2
+ from fastapi.staticfiles import StaticFiles
3
+ from fastapi.responses import FileResponse
4
+
5
 
6
  app = FastAPI()
7
 
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
- fastapi==0.74.*
2
  requests==2.27.*
3
  sentencepiece==0.1.*
4
- torch==1.11.*
5
  transformers==4.*
6
  uvicorn[standard]==0.17.*
 
1
+ fastapi
2
  requests==2.27.*
3
  sentencepiece==0.1.*
4
+ torch
5
  transformers==4.*
6
  uvicorn[standard]==0.17.*