Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,4 +11,101 @@ license: apache-2.0
|
|
| 11 |
short_description: Simple software license analyzer
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
short_description: Simple software license analyzer
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# License π± Analyzer
|
| 15 |
+
Understand any software license in seconds, not hours.
|
| 16 |
+
|
| 17 |
+
Have you ever gotten lost in the legal jargon of a software license? Have you ever wondered if you could use a package in your commercial project? Say goodbye to fear and uncertainty.
|
| 18 |
+
|
| 19 |
+
**License π± Analyzer** is your personal AI legal support, an open-source tool that leverages the power of advanced language models (like Llama 3, Gemma 2, and more) to transform dense legal texts into clear, concise, and standardized summaries.
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## π Live Demo
|
| 24 |
+
π **[TRY IT NOW ON HUGGING FACE SPACES](https://huggingface.co/spaces/jsmanrique/license-cat-analyzer)** π
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## β¨ Key Features
|
| 29 |
+
|
| 30 |
+
* **Instant Summaries:** Paste any license text and get an instant analysis.
|
| 31 |
+
* **Standardized Format:** Forget about interpretations. Get information consistently in the same clear, direct format:
|
| 32 |
+
* β
**Permissions:** What you can do.
|
| 33 |
+
* β **Limitations:** What you cannot do.
|
| 34 |
+
* βΉοΈ **Conditions:** What you must do.
|
| 35 |
+
* **AI Model Selection:** Choose from several of the best open language models to perform the analysis. Compare results and use the one that best suits your needs!
|
| 36 |
+
* **Open Source & Community-Driven:** Created by and for the developer community. Your feedback and contributions are the engine of this project.
|
| 37 |
+
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
## π€ Join the Mission! Want to Contribute?
|
| 41 |
+
We believe that understanding free software should be easy and accessible for everyone. If you share this vision, you're welcome! There are many ways to help, from reporting a bug to implementing exciting new features.
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## πΊοΈ Roadmap & Ideas for Contributing
|
| 46 |
+
Here are some ideas to take this project to the next level! If you're interested in any, open an issue to discuss it.
|
| 47 |
+
|
| 48 |
+
* π‘ **Analysis from URL:** Allow pasting a GitHub repository URL (e.g., .../blob/main/LICENSE) to automatically analyze the license.
|
| 49 |
+
* β¨ **Add More Models:** Integrate new LLMs as they emerge.
|
| 50 |
+
* π **Internationalization (i18n):** Translate the interface into more languages.
|
| 51 |
+
* π **"Copy Markdown" Button:** To easily copy the generated summary.
|
| 52 |
+
* β **Rating System:** Allow users to rate the quality of the summary generated by each model (this would be amazing!).
|
| 53 |
+
* π¨ **UI/UX Improvements:** Do you have ideas to make the interface more intuitive or attractive? Go for it!
|
| 54 |
+
* β‘ **Optimization & Caching:** Implement a caching system to avoid regenerating summaries for common licenses.
|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
## π οΈ Local Setup Guide
|
| 59 |
+
Ready to get started? Follow these steps to run the project on your machine:
|
| 60 |
+
|
| 61 |
+
1. **Clone the repository:**
|
| 62 |
+
```bash
|
| 63 |
+
git clone https://huggingface.co/spaces/jsmanrique/license-cat-analyzer
|
| 64 |
+
cd license-cat-analyzer
|
| 65 |
+
```
|
| 66 |
+
2. **Create and activate a virtual environment:**
|
| 67 |
+
```bash
|
| 68 |
+
python -m venv venv
|
| 69 |
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
| 70 |
+
```
|
| 71 |
+
3. **Install dependencies:**
|
| 72 |
+
```bash
|
| 73 |
+
pip install -r requirements.txt
|
| 74 |
+
```
|
| 75 |
+
4. **Configure your Hugging Face Token:**
|
| 76 |
+
To use the Inference API, you need a token. The most secure way is via environment variables.
|
| 77 |
+
```bash
|
| 78 |
+
export HUGGINGFACE_HUB_TOKEN='hf_your_token_here'
|
| 79 |
+
```
|
| 80 |
+
5. **Run the application:**
|
| 81 |
+
```bash
|
| 82 |
+
python app.py
|
| 83 |
+
```
|
| 84 |
+
And that's it! The application should be running at `http://127.0.0.1:7860`.
|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
## π How to Contribute
|
| 89 |
+
We follow the standard GitHub flow:
|
| 90 |
+
|
| 91 |
+
1. Fork this repository.
|
| 92 |
+
2. Create a new branch for your feature (`git checkout -b feature/your-feature-name`).
|
| 93 |
+
3. Make your changes and commit them.
|
| 94 |
+
4. Push to your branch (`git push origin feature/your-feature-name`).
|
| 95 |
+
5. Open a Pull Request detailing the changes you've made.
|
| 96 |
+
|
| 97 |
+
Every contribution, no matter how small, is greatly appreciated!
|
| 98 |
+
|
| 99 |
+
---
|
| 100 |
+
|
| 101 |
+
## π» Tech Stack
|
| 102 |
+
|
| 103 |
+
* **Backend:** Python
|
| 104 |
+
* **UI Framework:** Gradio
|
| 105 |
+
* **Platform:** Hugging Face Spaces
|
| 106 |
+
* **AI Models:** Via Hugging Face Inference API
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
## π License
|
| 111 |
+
This project is licensed under the Apache 2.0 License. Feel free to use, modify, and distribute it.
|