We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09de5ee commit 055c6aaCopy full SHA for 055c6aa
Backend/__pycache__/texttoAIvideo.cpython-310.pyc
2 Bytes
Backend/texttoAIvideo.py
@@ -1,5 +1,5 @@
1
+
2
from fastapi import FastAPI, APIRouter
-from fastapi.responses import JSONResponse
3
from fastapi.middleware.cors import CORSMiddleware
4
5
app = FastAPI()
@@ -9,7 +9,7 @@
9
async def get_text_from_file():
10
with open('input.txt', 'r') as file:
11
file_text = file.read(200)
12
- return JSONResponse(content=file_text)
+ return file_text
13
14
# Register the router with the main FastAPI app
15
app.include_router(router)
@@ -22,3 +22,4 @@ async def get_text_from_file():
22
allow_methods=["GET"],
23
allow_headers=["*"],
24
)
25
0 commit comments