Spaces:
Sleeping
Sleeping
fix (server): static mounted
Browse files
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"],
|