Spaces:
Sleeping
Sleeping
add
Browse files
app.py
CHANGED
|
@@ -11,6 +11,8 @@ from fastapi.responses import FileResponse
|
|
| 11 |
import os
|
| 12 |
from fastapi.middleware.cors import CORSMiddleware
|
| 13 |
import logging
|
|
|
|
|
|
|
| 14 |
|
| 15 |
logging.basicConfig(level=logging.INFO)
|
| 16 |
app = FastAPI()
|
|
|
|
| 11 |
import os
|
| 12 |
from fastapi.middleware.cors import CORSMiddleware
|
| 13 |
import logging
|
| 14 |
+
import matplotlib
|
| 15 |
+
matplotlib.use("Agg") # Mode sans interface graphique
|
| 16 |
|
| 17 |
logging.basicConfig(level=logging.INFO)
|
| 18 |
app = FastAPI()
|