Spaces:
Running
Running
Commit
•
1d5675d
1
Parent(s):
993bb68
Create config.py
Browse files
config.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# config.py
|
2 |
+
class Config:
|
3 |
+
API_KEY = "api_key" # Placeholder for the API key, initially set to None
|
4 |
+
|
5 |
+
@classmethod
|
6 |
+
def set_api_key(cls, api_key):
|
7 |
+
cls.API_KEY = api_key
|
8 |
+
|
9 |
+
@classmethod
|
10 |
+
def get_api_key(cls):
|
11 |
+
return cls.API_KEY
|