Skip to content

Commit 055c6aa

Browse files
committed
update
1 parent 09de5ee commit 055c6aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
2 Bytes
Binary file not shown.

Backend/texttoAIvideo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
12
from fastapi import FastAPI, APIRouter
2-
from fastapi.responses import JSONResponse
33
from fastapi.middleware.cors import CORSMiddleware
44

55
app = FastAPI()
@@ -9,7 +9,7 @@
99
async def get_text_from_file():
1010
with open('input.txt', 'r') as file:
1111
file_text = file.read(200)
12-
return JSONResponse(content=file_text)
12+
return file_text
1313

1414
# Register the router with the main FastAPI app
1515
app.include_router(router)
@@ -22,3 +22,4 @@ async def get_text_from_file():
2222
allow_methods=["GET"],
2323
allow_headers=["*"],
2424
)
25+

0 commit comments

Comments
 (0)