Sonny A-Otchie
commited on
Commit
•
e17e0cc
1
Parent(s):
4d7bd4f
init
Browse files- api.py +7 -0
- requirements.txt +2 -2
api.py
CHANGED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
|
3 |
+
app = FastAPI()
|
4 |
+
|
5 |
+
@app.get("/")
|
6 |
+
def read_root():
|
7 |
+
return {"Hello": "World!"}
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
fastapi[all]
|
2 |
-
requests
|
3 |
-
sentencepiece
|
4 |
torch
|
5 |
transformers
|
6 |
uvicorn
|
|
|
1 |
fastapi[all]
|
2 |
+
requests
|
3 |
+
sentencepiece
|
4 |
torch
|
5 |
transformers
|
6 |
uvicorn
|