Spaces:
Sleeping
Sleeping
Commit ·
884c2ce
1
Parent(s): f0f55ef
revert to sys.path insertion
Browse files- app.py +6 -0
- requirements.txt +0 -3
app.py
CHANGED
|
@@ -3,6 +3,12 @@
|
|
| 3 |
Hugging Face Space entry point for the CrewAI Demo application.
|
| 4 |
"""
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
from demo_crew.ui import CrewAIInterface
|
| 7 |
|
| 8 |
if __name__ == "__main__":
|
|
|
|
| 3 |
Hugging Face Space entry point for the CrewAI Demo application.
|
| 4 |
"""
|
| 5 |
|
| 6 |
+
import sys
|
| 7 |
+
import os
|
| 8 |
+
|
| 9 |
+
# Add the demo_crew package to the Python path
|
| 10 |
+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "demo_crew", "src"))
|
| 11 |
+
|
| 12 |
from demo_crew.ui import CrewAIInterface
|
| 13 |
|
| 14 |
if __name__ == "__main__":
|
requirements.txt
CHANGED
|
@@ -6,6 +6,3 @@ bcrypt
|
|
| 6 |
pymongo
|
| 7 |
python-dotenv
|
| 8 |
huggingface-hub
|
| 9 |
-
|
| 10 |
-
# Install demo_crew package from local directory
|
| 11 |
-
./demo_crew
|
|
|
|
| 6 |
pymongo
|
| 7 |
python-dotenv
|
| 8 |
huggingface-hub
|
|
|
|
|
|
|
|
|