Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ load_dotenv()
|
|
| 32 |
|
| 33 |
# Instead of hardcoding the DB URI, get it from an environment variable.
|
| 34 |
# This lets you plug in any single DB by changing the DATABASE_URI environment variable.
|
| 35 |
-
DATABASE_URI = os.getenv("DATABASE_URI", "employee.db")
|
| 36 |
|
| 37 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 38 |
os.environ["GROQ_API_KEY"] = GROQ_API_KEY
|
|
|
|
| 32 |
|
| 33 |
# Instead of hardcoding the DB URI, get it from an environment variable.
|
| 34 |
# This lets you plug in any single DB by changing the DATABASE_URI environment variable.
|
| 35 |
+
DATABASE_URI = os.getenv("DATABASE_URI", "sqlite:///employee.db")
|
| 36 |
|
| 37 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
| 38 |
os.environ["GROQ_API_KEY"] = GROQ_API_KEY
|