-
Notifications
You must be signed in to change notification settings - Fork 146
How to Install and Run the Open Source AI News Writer Locally on Windows
In this guide, you'll learn how to install and run our Open Source AI News Writer on your Windows system using PowerShell. Whether you're a beginner or just looking for a step-by-step walkthrough, this guide will help you set up your local news generation tool in minutes.
Before you begin, make sure you have the following:
- Git: Installed on your system. If not, download it from git-scm.com and install it.
- Python: Ensure you have Python installed (preferably version 3.7 or later). You can download it from python.org.
API Keys:
-
SERPER API Key – This is required for search functionalities. Get your Serper key here
-
Google (Gemini) API Key – Get your Google key here
Step 1: Open Windows PowerShell as Administrator
- Why?
Running PowerShell with administrator privileges ensures that you have the necessary permissions to install packages and set environment variables.
- How?
Click on the Start button. Search for PowerShell. Right-click on Windows PowerShell and select Run as administrator.
-
Command:
git clone https://github.com/AJaySi/alwrity_news_writer.git
-
Explanation: This command downloads a copy of the ALwrity AI News Writer project from GitHub to your local machine.
-
Command:
cd alwrity_news_writer
-
Explanation: This navigates into the directory where the project files are located, preparing you to run further commands from within the project context.
-
Command:
pip install streamlit
- Explanation: Streamlit is the framework used to run the web-based interface of the News Writer. This command installs it along with its dependencies.
-
Command:
$env:SERPER_API_KEY = "your_serper_api_key_here"
- Explanation: This command sets the environment variable for the SERPER API key. Replace "your_serper_api_key_here" with your actual API key value.
-
Command:
$env:GOOGLE_API_KEY = "your_google_api_key_here"
- Explanation: Similar to the previous step, this sets the environment variable for the Google API key. Again, replace "your_google_api_key_here" with your actual API key.
-
Command:
streamlit run google_news_writer.py
- Explanation: This command launches the News Writer application using Streamlit. Once executed, your default web browser should open, displaying the user interface where you can generate news content.
Congratulations! You've successfully installed and started the ALwrity News Writer locally. Now you can explore and generate news content right from your machine. This step-by-step process is perfect for beginners who want to understand how to clone a repository, set up environment variables, and run a Python web application.
If you encounter any issues or have questions, feel free to reach out for support or check out the GitHub repository for further documentation and updates.