Alleinzellgaenger commited on
Commit
f394d00
·
1 Parent(s): cf2001e

Fix issue with frontend folder

Browse files
Files changed (1) hide show
  1. backend/app.py +1 -1
backend/app.py CHANGED
@@ -21,7 +21,7 @@ app.add_middleware(
21
  # Mount static files (frontend) so that visiting "/" serves index.html
22
  # Note: The directory path "../frontend" works because when running in Docker,
23
  # our working directory is set to /app, and the frontend folder is at /app/frontend.
24
- app.mount("/", StaticFiles(directory="../frontend", html=True), name="static")
25
 
26
  # Load tokenizer and GPT2 model
27
  tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
 
21
  # Mount static files (frontend) so that visiting "/" serves index.html
22
  # Note: The directory path "../frontend" works because when running in Docker,
23
  # our working directory is set to /app, and the frontend folder is at /app/frontend.
24
+ app.mount("/", StaticFiles(directory="./frontend", html=True), name="static")
25
 
26
  # Load tokenizer and GPT2 model
27
  tokenizer = GPT2Tokenizer.from_pretrained('gpt2')