Spaces:
Sleeping
Sleeping
Commit
·
004b22a
1
Parent(s):
fdc222e
readme updated
Browse files- README.md +56 -0
- erp_core/__pycache__/asr_and_tts.cpython-311.pyc +0 -0
- erp_core/asr_and_tts.py +4 -1
- output.mp3 +0 -0
README.md
CHANGED
@@ -11,3 +11,59 @@ short_description: A multiagent system to work with ERP system
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
14 |
+
|
15 |
+
**This is an Automated ERP Management System**
|
16 |
+
|
17 |
+
you can clone the repository from github from the link: https://github.com/sArwar-sHafee/ERP-system.git
|
18 |
+
|
19 |
+
Using ssh: `git clone [email protected]:sArwar-sHafee/ERP-system.git`
|
20 |
+
|
21 |
+
`cd ERP-system`
|
22 |
+
|
23 |
+
`pip install -r requirements.txt`
|
24 |
+
|
25 |
+
`export OPENAI_API_KEY=<your_api_key>`
|
26 |
+
|
27 |
+
now run `python app.py`
|
28 |
+
|
29 |
+
this is provide a local host link to interact with the gradio interface.
|
30 |
+
|
31 |
+
enter into the link provided by gradio. Generally the link will be: `http://127.0.0.1:7860/`
|
32 |
+
|
33 |
+
---
|
34 |
+
|
35 |
+
Or you can also directly chat into the huggingface space from the link:
|
36 |
+
|
37 |
+
`https://huggingface.co/spaces/SarwarShafee/ERP-system`
|
38 |
+
|
39 |
+
# About the Project:
|
40 |
+
|
41 |
+
The project is a system for maintaining an ERP system. A combination of few agents
|
42 |
+
|
43 |
+
There are 5 departments: Customer Relationship Management, Finantial Management, , Human Resources, Peoject Management and Supply Chain Management. Each department is managed by an dedicated AI agent.
|
44 |
+
|
45 |
+
Righ now the financial management department can do 2 tasks.
|
46 |
+
- registering a purchase request
|
47 |
+
- Provide the report how many requests were being purchased in together.
|
48 |
+
|
49 |
+
All 5 agents are delegated to different tools. The tool will be called for solving different tasks.
|
50 |
+
|
51 |
+
The system takes audio as input. The asr model that is used here is whisper-1.
|
52 |
+
|
53 |
+
Then the audio goes to the llm portion. OpenAI gpt-4-omni is being used in the backend of the llm.
|
54 |
+
|
55 |
+
The response from the LLM part goes to the tts which is also using openai api. The tts model generates the audio and provides to the gradio inteface. Gradio interface plays the sound.
|
56 |
+
|
57 |
+
No finetune was necessay here. The prompt for different agent are working to operate the whole system.
|
58 |
+
|
59 |
+
# How the LLM Agents work:
|
60 |
+
|
61 |
+
The the agentic system used here is langgraph agentic system.
|
62 |
+
|
63 |
+
1st we need to define all nodes and edges. Then each node was assigned with the proper tool they need. Here each node are working as an AI agent. There is a tool CompleteorEscelate which was assigned to each node. If any node think that the user query does not goes with it, then it will call that tool to deligate the task to another node or agent.
|
64 |
+
|
65 |
+
There is a stating node called Primary Assistant. It is handelling all the other agents. And making decision which agent should handle the user task now.
|
66 |
+
|
67 |
+
To whole graph of the agent system is shown in the output_image.png file.
|
68 |
+
|
69 |
+

|
erp_core/__pycache__/asr_and_tts.cpython-311.pyc
CHANGED
Binary files a/erp_core/__pycache__/asr_and_tts.cpython-311.pyc and b/erp_core/__pycache__/asr_and_tts.cpython-311.pyc differ
|
|
erp_core/asr_and_tts.py
CHANGED
@@ -65,7 +65,10 @@ def tts(response_text):
|
|
65 |
voice="onyx",
|
66 |
input=response_text,
|
67 |
)
|
68 |
-
|
|
|
|
|
|
|
69 |
response.stream_to_file("output.mp3")
|
70 |
return "output.mp3"
|
71 |
|
|
|
65 |
voice="onyx",
|
66 |
input=response_text,
|
67 |
)
|
68 |
+
# file_path = "output.mp3"
|
69 |
+
# if os.path.exists(file_path):
|
70 |
+
# # Delete the file
|
71 |
+
# os.remove(file_path)
|
72 |
response.stream_to_file("output.mp3")
|
73 |
return "output.mp3"
|
74 |
|
output.mp3
CHANGED
Binary files a/output.mp3 and b/output.mp3 differ
|
|