Update README.md
Browse files
README.md
CHANGED
|
@@ -50,8 +50,18 @@ This model is intended for educational platforms, chat moderation tools, and stu
|
|
| 50 |
2. Promote a positive and respectful chat environment for students.
|
| 51 |
|
| 52 |
---
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
```python
|
| 57 |
import torch
|
|
|
|
| 50 |
2. Promote a positive and respectful chat environment for students.
|
| 51 |
|
| 52 |
---
|
| 53 |
+
## Use it with Gradio API:
|
| 54 |
+
```python
|
| 55 |
+
from gradio_client import Client
|
| 56 |
+
|
| 57 |
+
client = Client("Sk1306/Student_Ethics_Chat_Classifier")
|
| 58 |
+
result = client.predict(
|
| 59 |
+
text="you can copy in exam to pass!!",
|
| 60 |
+
api_name="/predict"
|
| 61 |
+
)
|
| 62 |
+
print(result)
|
| 63 |
+
```
|
| 64 |
+
## By loading Model
|
| 65 |
|
| 66 |
```python
|
| 67 |
import torch
|