pluto90 commited on
Commit
b15894a
·
verified ·
1 Parent(s): 79153e6

Upload 3 files

Browse files
Files changed (3) hide show
  1. app/__init__.py +0 -0
  2. app/main.py +19 -0
  3. app/requirements.txt +18 -0
app/__init__.py ADDED
File without changes
app/main.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ from fastapi.middleware.cors import CORSMiddleware
3
+ from app.api.routes import router
4
+
5
+ app = FastAPI(title="SmartNotes Backend")
6
+
7
+ app.add_middleware(
8
+ CORSMiddleware,
9
+ allow_origins=["http://localhost:5173"],
10
+ allow_credentials=True,
11
+ allow_methods=["*"],
12
+ allow_headers=["*"],
13
+ )
14
+
15
+ app.include_router(router, prefix="/api")
16
+
17
+ @app.get("/")
18
+ def root():
19
+ return {"message": "SmartNotes API is running 🚀"}
app/requirements.txt CHANGED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ qdrant-client
4
+ sentence-transformers
5
+ pdfplumber
6
+ numpy
7
+ python-multipart
8
+ google-generativeai
9
+ pypdf
10
+ python-dotenv
11
+ pdf2image
12
+ pytesseract
13
+
14
+ langchain
15
+ langchain-core
16
+ langchain-community
17
+ langchain-google-genai
18
+ google-generativeai