shivrajkarewar commited on
Commit
4f2e119
Β·
verified Β·
1 Parent(s): 6cd4949

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md CHANGED
@@ -11,4 +11,86 @@ license: mit
11
  short_description: Write technical articles using CrewAI
12
  ---
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
11
  short_description: Write technical articles using CrewAI
12
  ---
13
 
14
+ # πŸ“ DDS CrewAI Article Writer
15
+
16
+ An interactive web application powered by [CrewAI](https://github.com/joaomdmoura/crewai), [LangChain](https://www.langchain.com/), and [Gradio](https://gradio.app/) that simulates a collaborative team of AI agents (Researcher, Writer, Editor) to generate high-quality, human-like articles from any topic input.
17
+
18
+ ## πŸš€ Live Demo
19
+
20
+ Try it out on Hugging Face Spaces: [![Hugging Face Spaces](https://img.shields.io/badge/πŸ€—-Hugging%20Face%20Spaces-yellow)](https://huggingface.co/spaces/your-username/dds-crewai-writer)
21
+
22
+ ---
23
+
24
+ ## 🧠 How It Works
25
+
26
+ The app uses **CrewAI**, a multi-agent orchestration framework, to define and coordinate three specialized roles:
27
+
28
+ - πŸ” **Lead Research Analyst**: Gathers detailed insights on the topic.
29
+ - ✍️ **Professional Content Developer**: Writes a full-length, structured article based on the research.
30
+ - πŸͺ„ **Editorial Specialist**: Refines and polishes the final output for clarity, grammar, and flow.
31
+
32
+ Each agent is backed by `ChatOpenAI` from `langchain`, using the `gpt-3.5-turbo` model.
33
+
34
+ ---
35
+
36
+ ## πŸ“¦ Features
37
+
38
+ - 🧠 Autonomous AI teamwork with specialized goals.
39
+ - πŸ”Ž Deep research, natural language generation, and editing.
40
+ - πŸ–₯️ User-friendly Gradio interface.
41
+ - πŸ“„ Generates high-quality ~1000-word articles.
42
+ - πŸ› οΈ Plug-and-play with minimal setup on Hugging Face Spaces.
43
+
44
+ ---
45
+
46
+ ## πŸ–ΌοΈ Interface
47
+
48
+ | Input | Output |
49
+ |-------|--------|
50
+ | Topic of your choice (e.g., "Applications of AI in Healthcare") | Fully formatted article written, edited, and ready to publish. |
51
+
52
+ ---
53
+
54
+ ## 🧰 Installation
55
+
56
+ 1. **Clone the repository or use on Hugging Face Spaces**
57
+ 2. **Dependencies**:
58
+ Make sure you have the following installed in your `requirements.txt` or environment:
59
+ ```txt
60
+ gradio
61
+ crewai
62
+ langchain
63
+ openai
64
+ πŸ” Environment Variables
65
+ Make sure to set the following environment variable (especially for local testing):
66
+
67
+ bash
68
+ Copy
69
+ Edit
70
+ OPENAI_API_KEY=your_openai_api_key
71
+ On Hugging Face Spaces, you can set this under "Secrets".
72
+
73
+ 🏁 Run Locally
74
+ bash
75
+ Copy
76
+ Edit
77
+ python app.py
78
+ Or if you're using huggingface_hub structure, rename app.py to app.py or main.py and include it alongside your requirements.txt.
79
+
80
+ πŸ“„ License
81
+ MIT License. Free to use and modify.
82
+
83
+ ✨ Credits
84
+ Built using CrewAI
85
+
86
+ Language model via OpenAI GPT-3.5
87
+
88
+ Interface by Gradio
89
+
90
+ yaml
91
+ Copy
92
+ Edit
93
+
94
+
95
+
96
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference