FatimaGr commited on
Commit
d75cd79
·
verified ·
1 Parent(s): 27c2f90
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -221,6 +221,12 @@ async def translate_document(file: UploadFile = File(...), target_lang: str = Fo
221
  logging.error(f"❌ Erreur lors de la traduction : {e}")
222
  return JSONResponse(status_code=500, content={"error": "Échec de la traduction"})
223
 
 
 
 
 
 
 
224
  # Redirection vers index.html
225
  @app.get("/")
226
  async def root():
 
221
  logging.error(f"❌ Erreur lors de la traduction : {e}")
222
  return JSONResponse(status_code=500, content={"error": "Échec de la traduction"})
223
 
224
+
225
+ # ✅ Déplace ici le montage des fichiers statiques
226
+ app.mount("/", StaticFiles(directory="static", html=True), name="static")
227
+
228
+
229
+
230
  # Redirection vers index.html
231
  @app.get("/")
232
  async def root():