Zeetay commited on
Commit
fa16e11
·
1 Parent(s): bac6a49

docker-compose fixed

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +4 -8
Dockerfile CHANGED
@@ -19,4 +19,4 @@ COPY . .
19
  EXPOSE 8000
20
 
21
  # Run FastAPI app
22
- CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "8000"]
 
19
  EXPOSE 8000
20
 
21
  # Run FastAPI app
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
app.py CHANGED
@@ -7,19 +7,15 @@ This API receives a problem description, pseudocode style, and level of detail,
7
  then returns formatted pseudocode as Markdown text.
8
  """
9
 
10
- from fastapi import FastAPI, HTTPException, Request
11
- from pydantic import BaseModel, constr
12
  from fastapi.middleware.cors import CORSMiddleware
13
- from .ai_prompts import TEMPLATES
14
- from .utils import call_llm
15
- from pydantic import BaseModel, constr, Field
16
  from typing import Annotated
17
  from pathlib import Path
18
  from dotenv import load_dotenv
19
- import os
20
- import time
21
  import logging
22
- import openai
 
23
 
24
  # -----------------------------------------------------------------------------
25
  # Environment setup
 
7
  then returns formatted pseudocode as Markdown text.
8
  """
9
 
10
+ from fastapi import FastAPI, HTTPException
 
11
  from fastapi.middleware.cors import CORSMiddleware
12
+ from pydantic import BaseModel, Field
 
 
13
  from typing import Annotated
14
  from pathlib import Path
15
  from dotenv import load_dotenv
 
 
16
  import logging
17
+ from ai_prompts import TEMPLATES
18
+ from utils import call_llm
19
 
20
  # -----------------------------------------------------------------------------
21
  # Environment setup