julsCadenas
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -40,6 +40,7 @@ model-index:
|
|
40 |
# Reddit Summarization Model
|
41 |
|
42 |
This project uses a fine-tuned model for summarizing Reddit posts and their comments. The model has been trained using a dataset of 100 Reddit posts, and the goal is to generate concise and meaningful summaries of the original posts and the associated comments.
|
|
|
43 |
|
44 |
## Model on Hugging Face
|
45 |
|
@@ -50,6 +51,7 @@ This project uses a fine-tuned version of the BART model from Facebook for summa
|
|
50 |
|
51 |
## **Usage**
|
52 |
|
|
|
53 |
```python
|
54 |
from transformers import pipeline
|
55 |
|
@@ -93,7 +95,7 @@ class Summarize:
|
|
93 |
}
|
94 |
```
|
95 |
|
96 |
-
|
97 |
```python
|
98 |
def fix_json(jsonfile, path):
|
99 |
improper_json = jsonfile
|
|
|
40 |
# Reddit Summarization Model
|
41 |
|
42 |
This project uses a fine-tuned model for summarizing Reddit posts and their comments. The model has been trained using a dataset of 100 Reddit posts, and the goal is to generate concise and meaningful summaries of the original posts and the associated comments.
|
43 |
+
You can access the source code and more information about this project on GitHub: [GitHub Repository Link](https://github.com/julsCadenas/summarize-reddit)
|
44 |
|
45 |
## Model on Hugging Face
|
46 |
|
|
|
51 |
|
52 |
## **Usage**
|
53 |
|
54 |
+
You can use the model to summarize Reddit posts and comments using the following code:
|
55 |
```python
|
56 |
from transformers import pipeline
|
57 |
|
|
|
95 |
}
|
96 |
```
|
97 |
|
98 |
+
You can also use a script to format the JSON:
|
99 |
```python
|
100 |
def fix_json(jsonfile, path):
|
101 |
improper_json = jsonfile
|