Abdullahcoder54 commited on
Commit
37609c4
·
1 Parent(s): 5478bd4
Files changed (2) hide show
  1. Dockerfile +1 -2
  2. config/config.py +6 -8
Dockerfile CHANGED
@@ -13,7 +13,6 @@ COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
  RUN pip install --no-cache-dir openai-chatkit==1.4.0
15
 
16
- RUN python -c "import os; print(os.getenv('GEMINI_API_KEY') or 'GEMINI_API_KEY not set')"
17
- RUN python -c "import os; print(os.getenv('BETTER_AUTH_SECRET') or 'BETTER_AUTH_SECRET not set')"
18
  COPY --chown=user . /app
19
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
  RUN pip install --no-cache-dir openai-chatkit==1.4.0
15
 
16
+
 
17
  COPY --chown=user . /app
18
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
config/config.py CHANGED
@@ -8,15 +8,13 @@ from dotenv import load_dotenv
8
  load_dotenv()
9
 
10
  class Settings(BaseSettings):
11
-
12
- GEMINI_API_KEY: str = os.getenv("GEMINI_API_KEY")
13
  BUSINESS_SERVICE_URL: HttpUrl = "https://abdullahcoder54-todo-app.hf.space"
14
  CONVERSATION_RETENTION_DAYS: int = 7
15
- BETTER_AUTH_SECRET: str = os.getenv("BETTER_AUTH_SECRET")
16
 
17
- model_config = {
18
- "env_file": ".env",
19
- "case_sensitive": True,
20
- "extra": "allow"
21
- }
22
  settings = Settings()
 
8
  load_dotenv()
9
 
10
  class Settings(BaseSettings):
11
+ GEMINI_API_KEY: str
12
+ BETTER_AUTH_SECRET: str
13
  BUSINESS_SERVICE_URL: HttpUrl = "https://abdullahcoder54-todo-app.hf.space"
14
  CONVERSATION_RETENTION_DAYS: int = 7
 
15
 
16
+ class Config:
17
+ env_file = ".env"
18
+ case_sensitive = True
19
+
 
20
  settings = Settings()