Update README.md
Browse files
README.md
CHANGED
@@ -43,10 +43,10 @@ base_model:
|
|
43 |
|
44 |
- **Model Name**: Finlytic-Categorize
|
45 |
- **Model Type**: Expense Categorization
|
46 |
-
- **Framework**:
|
47 |
- **Dataset**: The model is trained on financial transaction data, including diverse business expenses.
|
48 |
- **Use Case**: Automating the process of categorizing expenses into tax-compliant categories for SMEs in Nepal.
|
49 |
-
- **Hosting**:
|
50 |
|
51 |
## Objective
|
52 |
|
@@ -58,9 +58,11 @@ The model is based on a pre-trained transformer architecture, fine-tuned specifi
|
|
58 |
|
59 |
## How to Use
|
60 |
|
|
|
|
|
61 |
To use the **Finlytic-Categorize** model locally, follow these steps:
|
62 |
|
63 |
-
1. **Installation**: Clone the model repository from
|
64 |
|
65 |
```bash
|
66 |
git clone https://huggingface.co/comethrusws/finlytic-categorize
|
@@ -71,14 +73,34 @@ To use the **Finlytic-Categorize** model locally, follow these steps:
|
|
71 |
```python
|
72 |
from transformers import AutoTokenizer, AutoModel
|
73 |
|
74 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
75 |
-
model = AutoModel.from_pretrained("
|
76 |
```
|
77 |
|
78 |
3. **Input**: Feed your financial data (in JSON, CSV, or any structured format). The model expects financial transaction descriptions and amounts.
|
79 |
|
80 |
4. **Output**: The output will be the assigned tax category for each transaction. You can format this into a structured report or integrate it into your financial systems.
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
## Dataset
|
83 |
|
84 |
The model was trained on financial data with annotations, specifically curated for Nepalese businesses, covering a wide range of common expense types, such as:
|
@@ -108,4 +130,9 @@ The model was evaluated using a hold-out validation set and achieved high accura
|
|
108 |
|
109 |
## Contact
|
110 |
|
111 |
-
For queries or contributions, reach out to the Finlytic development team at [[email protected]
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
- **Model Name**: Finlytic-Categorize
|
45 |
- **Model Type**: Expense Categorization
|
46 |
+
- **Framework**: Transformers (PyTorch), GPT-2
|
47 |
- **Dataset**: The model is trained on financial transaction data, including diverse business expenses.
|
48 |
- **Use Case**: Automating the process of categorizing expenses into tax-compliant categories for SMEs in Nepal.
|
49 |
+
- **Hosting**: Hugging Face model repository (currently used in a locally hosted setup)
|
50 |
|
51 |
## Objective
|
52 |
|
|
|
58 |
|
59 |
## How to Use
|
60 |
|
61 |
+
### Local Usage
|
62 |
+
|
63 |
To use the **Finlytic-Categorize** model locally, follow these steps:
|
64 |
|
65 |
+
1. **Installation**: Clone the model repository from Hugging Face or use the local model by loading it with Hugging Face’s `transformers` library.
|
66 |
|
67 |
```bash
|
68 |
git clone https://huggingface.co/comethrusws/finlytic-categorize
|
|
|
73 |
```python
|
74 |
from transformers import AutoTokenizer, AutoModel
|
75 |
|
76 |
+
tokenizer = AutoTokenizer.from_pretrained("comethrusws/finlytic-categorize")
|
77 |
+
model = AutoModel.from_pretrained("comethrusws/finlytic-categorize")
|
78 |
```
|
79 |
|
80 |
3. **Input**: Feed your financial data (in JSON, CSV, or any structured format). The model expects financial transaction descriptions and amounts.
|
81 |
|
82 |
4. **Output**: The output will be the assigned tax category for each transaction. You can format this into a structured report or integrate it into your financial systems.
|
83 |
|
84 |
+
### Using Inference API
|
85 |
+
|
86 |
+
You can also use the **Finlytic-Categorize** model via the Hugging Face Inference API.
|
87 |
+
|
88 |
+
```python
|
89 |
+
import requests
|
90 |
+
|
91 |
+
API_URL = "https://api-inference.huggingface.co/models/comethrusws/finlytic-categorize"
|
92 |
+
headers = {"Authorization": "Bearer YOUR_API_KEY"}
|
93 |
+
|
94 |
+
data = {
|
95 |
+
"inputs": "Categorize this expense: 'Software purchase, $200.'"
|
96 |
+
}
|
97 |
+
|
98 |
+
response = requests.post(API_URL, headers=headers, json=data)
|
99 |
+
print(response.json())
|
100 |
+
```
|
101 |
+
|
102 |
+
Replace `YOUR_API_KEY` with your Hugging Face API key.
|
103 |
+
|
104 |
## Dataset
|
105 |
|
106 |
The model was trained on financial data with annotations, specifically curated for Nepalese businesses, covering a wide range of common expense types, such as:
|
|
|
130 |
|
131 |
## Contact
|
132 |
|
133 |
+
For queries or contributions, reach out to the Finlytic development team at [[email protected]](mailto:[email protected]).
|
134 |
+
```
|
135 |
+
|
136 |
+
This version updates the framework section to `Transformers (PyTorch), GPT-2` and includes a working example of how to use the inference API. You can now copy and paste this into your `README.md` file on Hugging Face.
|
137 |
+
|
138 |
+
Let me know if you need any further tweaks!
|