Spaces:
Sleeping
Sleeping
iSathyam03
commited on
Commit
β’
b38a0da
1
Parent(s):
061308f
readme done
Browse files
README.md
CHANGED
@@ -4,6 +4,7 @@ Welcome to **ReWriteCraft**! π This project allows you to rewrite your text i
|
|
4 |
|
5 |
This app leverages LangChain and Ollama models to enhance the AI's rewriting capabilities. Whether you want to refine the tone of a formal letter or add a casual touch to your writing, this app has you covered! π
|
6 |
|
|
|
7 |
## Project Structure
|
8 |
The project is organized as follows:
|
9 |
```
|
@@ -19,19 +20,31 @@ ReWriteCraft/
|
|
19 |
β βββ InformaltoFormal/ # Folder with examples of text converted from informal to formal tone
|
20 |
```
|
21 |
|
|
|
22 |
## Features
|
23 |
* **Customizable Tone**: Choose between Formal or Informal tones for your rewritten text.
|
24 |
* **Customizable Dialect**: Choose between American or British dialects.
|
25 |
* **Easy-to-use Interface**: The app is built using Streamlit, making it interactive and simple.
|
26 |
* **Quick Response**: Rewritten text is generated with the help of the LLama 3.1 model.
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
## How to Use
|
29 |
1. **Clone the Repository**: Clone this repository to your local machine or server:
|
30 |
```
|
31 |
git clone https://github.com/iSathyam31/ReWriteCraft.git
|
32 |
cd ReWriteCraft
|
33 |
```
|
34 |
-
2. Create a `.env` file
|
35 |
```
|
36 |
LANGCHAIN_API_KEY=your_api_key_here
|
37 |
```
|
@@ -45,10 +58,37 @@ streamlit run app.py
|
|
45 |
```
|
46 |
The app will be accessible in your browser at `http://localhost:8501`.
|
47 |
|
|
|
48 |
## Project Constraints
|
49 |
* **Word Limit**: The app currently supports a maximum of 1500 words for input. You can modify this limit in the code if needed. The input text must be within this word count to avoid performance issues.
|
50 |
* **Tone & Dialect Selection**:
|
51 |
- The options for tone (Formal/Informal) and dialect (American/British) are optional. You can choose one or both options based on your needs.
|
52 |
- If you want a specific tone or dialect applied to your text, simply check the corresponding boxes. You can apply both tone and dialect together or choose either one independently.
|
53 |
-
This flexibility allows you to get a variety of outputs depending on your selection.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
|
|
4 |
|
5 |
This app leverages LangChain and Ollama models to enhance the AI's rewriting capabilities. Whether you want to refine the tone of a formal letter or add a casual touch to your writing, this app has you covered! π
|
6 |
|
7 |
+
|
8 |
## Project Structure
|
9 |
The project is organized as follows:
|
10 |
```
|
|
|
20 |
β βββ InformaltoFormal/ # Folder with examples of text converted from informal to formal tone
|
21 |
```
|
22 |
|
23 |
+
|
24 |
## Features
|
25 |
* **Customizable Tone**: Choose between Formal or Informal tones for your rewritten text.
|
26 |
* **Customizable Dialect**: Choose between American or British dialects.
|
27 |
* **Easy-to-use Interface**: The app is built using Streamlit, making it interactive and simple.
|
28 |
* **Quick Response**: Rewritten text is generated with the help of the LLama 3.1 model.
|
29 |
|
30 |
+
|
31 |
+
## Prerequisites
|
32 |
+
Before running the project, ensure the following requirements are met:
|
33 |
+
1. **Install Ollama**: Ollama is the platform required to run the LLama 3.1 model. Follow the instructions on the Ollama official website to download and install it on your device.
|
34 |
+
2. **Download LLama 3.1 Model**: After installing Ollama, download the LLama 3.1 model by running the following command in your terminal:
|
35 |
+
```
|
36 |
+
ollama pull llama3.1
|
37 |
+
```
|
38 |
+
3. **Python Environment**: Ensure you have Python installed on your machine. It's recommended to use Python 3.9 or later for compatibility with the dependencies listed in `requirements.txt`.
|
39 |
+
|
40 |
+
|
41 |
## How to Use
|
42 |
1. **Clone the Repository**: Clone this repository to your local machine or server:
|
43 |
```
|
44 |
git clone https://github.com/iSathyam31/ReWriteCraft.git
|
45 |
cd ReWriteCraft
|
46 |
```
|
47 |
+
2. **Create a `.env` file**: In the root directory, create a `.env` file to store your LangChain API key:
|
48 |
```
|
49 |
LANGCHAIN_API_KEY=your_api_key_here
|
50 |
```
|
|
|
58 |
```
|
59 |
The app will be accessible in your browser at `http://localhost:8501`.
|
60 |
|
61 |
+
|
62 |
## Project Constraints
|
63 |
* **Word Limit**: The app currently supports a maximum of 1500 words for input. You can modify this limit in the code if needed. The input text must be within this word count to avoid performance issues.
|
64 |
* **Tone & Dialect Selection**:
|
65 |
- The options for tone (Formal/Informal) and dialect (American/British) are optional. You can choose one or both options based on your needs.
|
66 |
- If you want a specific tone or dialect applied to your text, simply check the corresponding boxes. You can apply both tone and dialect together or choose either one independently.
|
67 |
+
- This flexibility allows you to get a variety of outputs depending on your selection.
|
68 |
+
|
69 |
+
|
70 |
+
## Requirements
|
71 |
+
You can find the necessary dependencies in the `requirements.txt` file. Here is the list:
|
72 |
+
```
|
73 |
+
ipykernel
|
74 |
+
langchain==0.2.10
|
75 |
+
langchain_community==0.2.10
|
76 |
+
langchain-openai==0.1.17
|
77 |
+
langchain-groq==0.1.6
|
78 |
+
langchain-ollama==0.1.0
|
79 |
+
python-dotenv==1.0.1
|
80 |
+
streamlit
|
81 |
+
```
|
82 |
+
|
83 |
+
|
84 |
+
## License
|
85 |
+
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.
|
86 |
+
|
87 |
+
|
88 |
+
## Acknowledgements
|
89 |
+
* **LangChain**: Used for integrating LLMs and text processing functionalities.
|
90 |
+
* **Ollama**: The primary language model used in this project (LLama 3.1) for text generation.
|
91 |
+
* **Streamlit**: The framework used to build this interactive web app.
|
92 |
+
|
93 |
+
Thanks to all the developers and contributors of these tools for making them available to the open-source community! π
|
94 |
|