Spaces:
Sleeping
Sleeping
Commit ·
ed82bfe
1
Parent(s): ccecc33
Build the scaffold
Browse files
app.py
CHANGED
|
@@ -10,3 +10,18 @@ from deal_agent_framework import DealAgentFramework
|
|
| 10 |
from log_utils import reformat
|
| 11 |
|
| 12 |
load_dotenv(override=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
from log_utils import reformat
|
| 11 |
|
| 12 |
load_dotenv(override=True)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class App:
|
| 16 |
+
def __init__(self):
|
| 17 |
+
### lazy initialization
|
| 18 |
+
self.agent_framework = None
|
| 19 |
+
### And assign it here
|
| 20 |
+
def get_agent_framework(self):
|
| 21 |
+
if not self.agent_framework:
|
| 22 |
+
self.agent_framework = DealAgentFramework()
|
| 23 |
+
|
| 24 |
+
return self.agent_framework
|
| 25 |
+
|
| 26 |
+
def run(self):
|
| 27 |
+
pass
|