Arafath10 commited on
Commit
9b752bf
1 Parent(s): 3a193d2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -3,8 +3,7 @@ from fastapi.responses import StreamingResponse
3
  import os
4
  import io
5
 
6
- f = open("model/t.txt","r")
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": "Hello World"+str(f.read())}
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(...)):