CoolFace
Apppublic

ankitpatil3003/Content-Reseracher-Writer-Using-CrewAI

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
App README

Content-Reseracher-Writer-Using-CrewAI

A powerful content generation system built with CrewAI that combines research, analysis, and writing capabilities to produce high-quality blog posts on any topic.

๐Ÿš€ Features

  • โ€”Automated research using Gemini and SerperAPI
  • โ€”AI-powered content writing and analysis
  • โ€”Sentiment analysis and keyword extraction
  • โ€”Streamlit web interface for easy interaction
  • โ€”Downloadable markdown output

๐Ÿ“‹ Prerequisites

  • โ€”Python 3.9+
  • โ€”Gemini API key
  • โ€”SERPER API key

๐Ÿ› ๏ธ Installation

  1. 1.Clone the repository:
bash
git clone <repository-url>
  1. 1.Create and activate a virtual environment:
bash
conda create -n crewai python==3.12 -y
conda activate crewai
  1. 1.Install dependencies:
bash
pip install -r requirements.txt
  1. 1.Set up environment variables:
  2. 2.Copy .env.example to .env
  3. 3.Add your API keys to .env:
env
GEMINI_API_KEY=your_gemini_api_key
SERPER_API_KEY=your_serper_key

๐Ÿš€ Running the Application

Command Line Version

Run the basic version using:

bash
python app.py

Web Interface

Launch the Streamlit web interface:

bash
streamlit run streamlit_app.py

Then open your browser and navigate to http://localhost:8501

Deployed

Also deployed on Hugging Face with Github Actions Here is the link:

https://huggingface.co/spaces/ankitpatil3003/Content-Reseracher-Writer-Using-CrewAI

๐Ÿ’ป Usage

  1. 1.Web Interface:
  2. 2.Enter your desired topic in the sidebar
  3. 3.Adjust the temperature setting if needed
  4. 4.Click "Generate Content"
  5. 5.Wait for the AI to generate your article
  6. 6.Download the result as a markdown file
  1. 1.Command Line:
  2. 2.Edit the topic in app.py
  3. 3.Run the script
  4. 4.Results will be printed to console

๐Ÿ”ง Project Structure

ai-content-assistant/
โ”œโ”€โ”€ streamlit_app.py    # Web interface
โ”œโ”€โ”€ app.py             # Command line version
โ”œโ”€โ”€ requirements.txt   # Project dependencies
โ”œโ”€โ”€ .env              # Environment variables
โ””โ”€โ”€ README.md         # Documentation