Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -3,8 +3,7 @@ from fastapi.responses import StreamingResponse
|
|
3 |
import os
|
4 |
import io
|
5 |
|
6 |
-
|
7 |
-
print(f.read())
|
8 |
|
9 |
app = FastAPI()
|
10 |
|
@@ -19,7 +18,7 @@ def startup_event():
|
|
19 |
|
20 |
@app.get("/")
|
21 |
def read_root():
|
22 |
-
return {"message":
|
23 |
|
24 |
@app.post("/uploadfile/")
|
25 |
async def create_upload_file(file: UploadFile = File(...)):
|
|
|
3 |
import os
|
4 |
import io
|
5 |
|
6 |
+
temp = open("model/t.txt","r")
|
|
|
7 |
|
8 |
app = FastAPI()
|
9 |
|
|
|
18 |
|
19 |
@app.get("/")
|
20 |
def read_root():
|
21 |
+
return {"message": temp.read()}
|
22 |
|
23 |
@app.post("/uploadfile/")
|
24 |
async def create_upload_file(file: UploadFile = File(...)):
|