Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
moriire
/
OpenGenAI
like
0
Sleeping
App
Files
Files
Community
moriire
commited on
Apr 13, 2024
Commit
1b1f1b0
•
1 Parent(s):
8a03a36
Create config.py
Browse files
Files changed (1)
hide
show
config.py
+9
-0
config.py
ADDED
Viewed
@@ -0,0 +1,9 @@
1
+
import os
2
+
3
+
from pydantic import BaseSettings, Field
4
+
5
+
6
+
class Settings(BaseSettings):
7
+
db_url: str = Field(..., env='DATABASE_URL')
8
+
9
+
settings = Settings()