TextTune is a Streamlit-based application for grammar checking and text rephrasing. It offers two main input methods: manual text input and PDF file upload. Users can choose between checking grammar or rephrasing the text.
- Manual Input: Enter text directly into a text box.
- PDF Upload: Upload a PDF file to extract and process text.
- Grammar Check: Corrects grammar and explains changes.
- Rephrase: Rephrases the given text.
Watch a preview of TextTune in action:
- Docker: To build and run the application container.
- Python 3.9: If you prefer running the app outside of Docker.
-
Clone the Repository
git clone https://github.com/yourusername/texttune.git cd texttune
-
Create a .env File
Create a
.env
file in the root directory with the following content:GEMINI_API_KEY=your_gemini_api_key
Replace
your_gemini_api_key
with your actual Gemini API key. -
Build the Docker Image
docker build -t texttune .
-
Run the Docker Container
docker run -p 8501:8501 texttune
-
Access the Application
Open your web browser and go to http://localhost:8501.
-
Clone the Repository
git clone https://github.com/yourusername/texttune.git cd texttune
-
Create a Virtual Environment
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
-
Create a .env File
Create a
.env
file in the root directory with the following content:GEMINI_API_KEY=your_gemini_api_key
Replace
your_gemini_api_key
with your actual Gemini API key. -
Run the Application
streamlit run app.py
-
Access the Application
Open your web browser and go to http://localhost:8501.
- Dockerfile: Docker configuration for building the container.
- requirements.txt: Python package dependencies.
- app.py: Main application code.
- .env: Environment variables (not included in version control).
- README.md: This file.
Feel free to open issues or submit pull requests if you have suggestions or improvements. Make sure to follow best practices and include tests with your contributions.