Spaces:
Sleeping
Sleeping
Commit
·
37609c4
1
Parent(s):
5478bd4
push
Browse files- Dockerfile +1 -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 |
-
|
| 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 |
-
|
| 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 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 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()
|