santanche commited on
Commit
10dbb77
·
1 Parent(s): 274c132

fix (server): static mounted

Browse files
Files changed (1) hide show
  1. app/server_sentiment_analysis.py +3 -0
app/server_sentiment_analysis.py CHANGED
@@ -11,6 +11,9 @@ from sentiment_analysis import SentimentAnalysis
11
 
12
  app = FastAPI()
13
 
 
 
 
14
  app.add_middleware(
15
  CORSMiddleware,
16
  allow_origins=["http://127.0.0.1:5173","http://localhost:5173"],
 
11
 
12
  app = FastAPI()
13
 
14
+ # Serve static files
15
+ app.mount("/app/static", StaticFiles(directory="static"), name="static")
16
+
17
  app.add_middleware(
18
  CORSMiddleware,
19
  allow_origins=["http://127.0.0.1:5173","http://localhost:5173"],