Spaces:
Runtime error
Runtime error
Update README.md
Browse files
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: [](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
|