emilbm commited on
Commit
4147a65
·
1 Parent(s): 3c358dc
Files changed (1) hide show
  1. app/main.py +0 -3
app/main.py CHANGED
@@ -1,11 +1,9 @@
1
  from fastapi import FastAPI, HTTPException
2
  from fastapi.responses import FileResponse
3
- from fastapi.staticfiles import StaticFiles
4
  from fastapi.middleware.cors import CORSMiddleware
5
  from app.models import EmbedRequest, EmbedResponse
6
  from app.embeddings import embed_text
7
  from logging import getLogger
8
- from pathlib import Path
9
 
10
  logger = getLogger(__name__)
11
 
@@ -47,4 +45,3 @@ async def root() -> FileResponse | dict[str, str]:
47
  """Serve the frontend `index.html` if present, otherwise return small JSON status."""
48
  index_file = "frontend/index.html"
49
  return FileResponse(index_file)
50
-
 
1
  from fastapi import FastAPI, HTTPException
2
  from fastapi.responses import FileResponse
 
3
  from fastapi.middleware.cors import CORSMiddleware
4
  from app.models import EmbedRequest, EmbedResponse
5
  from app.embeddings import embed_text
6
  from logging import getLogger
 
7
 
8
  logger = getLogger(__name__)
9
 
 
45
  """Serve the frontend `index.html` if present, otherwise return small JSON status."""
46
  index_file = "frontend/index.html"
47
  return FileResponse(index_file)