Spaces:
Paused
Paused
Zhen Ye
commited on
Commit
·
48ece04
1
Parent(s):
fe2ee0d
Add python-dotenv support for local GPT testing
Browse files- app.py +3 -0
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
import os
|
|
|
|
|
|
|
|
|
|
| 2 |
import logging
|
| 3 |
|
| 4 |
# Fix: Set Hugging Face cache to writable location
|
|
|
|
| 1 |
import os
|
| 2 |
+
from dotenv import load_dotenv
|
| 3 |
+
load_dotenv()
|
| 4 |
+
|
| 5 |
import logging
|
| 6 |
|
| 7 |
# Fix: Set Hugging Face cache to writable location
|
requirements.txt
CHANGED
|
@@ -11,3 +11,5 @@ huggingface-hub
|
|
| 11 |
ultralytics
|
| 12 |
timm
|
| 13 |
ffmpeg-python
|
|
|
|
|
|
|
|
|
| 11 |
ultralytics
|
| 12 |
timm
|
| 13 |
ffmpeg-python
|
| 14 |
+
python-dotenv
|
| 15 |
+
|