Spaces:
Sleeping
Sleeping
Update app/dependencies.py
Browse files- app/dependencies.py +9 -0
app/dependencies.py
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from app.services.assistant_service import assistant_instance
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def get_assistant():
|
| 5 |
+
|
| 6 |
+
if assistant_instance is None:
|
| 7 |
+
raise RuntimeError("Assistant not initialized")
|
| 8 |
+
|
| 9 |
+
return assistant_instance
|