Upload backend/core/migrations/0008_ocr_fields.py with huggingface_hub
Browse files
backend/core/migrations/0008_ocr_fields.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.db import migrations, models
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class Migration(migrations.Migration):
|
| 5 |
+
|
| 6 |
+
dependencies = [
|
| 7 |
+
("core", "0007_legal_upload_storage"),
|
| 8 |
+
]
|
| 9 |
+
|
| 10 |
+
operations = [
|
| 11 |
+
migrations.AddField(
|
| 12 |
+
model_name="legaldocument",
|
| 13 |
+
name="raw_text_ocr",
|
| 14 |
+
field=models.TextField(blank=True),
|
| 15 |
+
),
|
| 16 |
+
migrations.AddField(
|
| 17 |
+
model_name="legalsection",
|
| 18 |
+
name="is_ocr",
|
| 19 |
+
field=models.BooleanField(default=False),
|
| 20 |
+
),
|
| 21 |
+
]
|
| 22 |
+
|