Update README.md
Browse files
README.md
CHANGED
|
@@ -1,35 +1,30 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: mit
|
| 3 |
-
datasets:
|
| 4 |
-
- sultanDilawar/react-redux-dataset
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
base_model:
|
| 8 |
-
- google/flan-t5-base
|
| 9 |
-
pipeline_tag: text-generation
|
| 10 |
-
---
|
| 11 |
-
license: mit
|
| 12 |
-
datasets:
|
| 13 |
-
- sultanDilawar/react-redux-dataset
|
| 14 |
-
language:
|
| 15 |
-
- en
|
| 16 |
-
pipeline_tag: question-answering
|
| 17 |
tags:
|
| 18 |
-
- question-answering
|
| 19 |
- react
|
| 20 |
- redux
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
---
|
| 22 |
-
# React Redux Model for Question Answering
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
- **Language**: English
|
| 35 |
-
- **Fine-tuned for**: Answering React and Redux-related questions
|
|
|
|
| 1 |
---
|
| 2 |
+
language: en
|
| 3 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
tags:
|
|
|
|
| 5 |
- react
|
| 6 |
- redux
|
| 7 |
+
- state management
|
| 8 |
+
datasets:
|
| 9 |
+
- sultanDilawar/react-redux-dataset
|
| 10 |
+
base_model:
|
| 11 |
+
- google-t5/t5-base
|
| 12 |
---
|
|
|
|
| 13 |
|
| 14 |
+
# react-redux-model
|
| 15 |
+
|
| 16 |
+
This is a custom model for understanding React and Redux concepts.
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
|
| 20 |
+
To use this model, send a POST request to the Hugging Face API:
|
| 21 |
|
| 22 |
+
```python
|
| 23 |
+
import requests
|
| 24 |
|
| 25 |
+
model_url = "https://api-inference.huggingface.co/models/sultanDilawar/react-redux-model"
|
| 26 |
+
headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
|
| 27 |
+
data = {"inputs": "What is Redux?"}
|
| 28 |
|
| 29 |
+
response = requests.post(model_url, headers=headers, json=data)
|
| 30 |
+
print(response.json())
|
|
|
|
|
|