Spaces:
Sleeping
Sleeping
Download webapp/migrations/0001_initial.py from PeaceAbolisher/Model_Lab_Deployment: direct link, hf CLI and curl.
- Browser
- Download file 1.89 kB
-
https://huggingface.co/spaces/PeaceAbolisher/Model_Lab_Deployment/resolve/main/webapp/migrations/0001_initial.py
- Command line
-
hf download hf://spaces/PeaceAbolisher/Model_Lab_Deployment/webapp/migrations/0001_initial.py
-
curl -L -o 0001_initial.py https://huggingface.co/spaces/PeaceAbolisher/Model_Lab_Deployment/resolve/main/webapp/migrations/0001_initial.py
1.89 kB
| # Generated by Django 5.2.3 on 2025-09-17 17:28 | |
| import django.db.models.deletion | |
| import webapp.models | |
| from django.conf import settings | |
| from django.db import migrations, models | |
| class Migration(migrations.Migration): | |
| initial = True | |
| dependencies = [ | |
| migrations.swappable_dependency(settings.AUTH_USER_MODEL), | |
| ] | |
| operations = [ | |
| migrations.CreateModel( | |
| name='PublicDataset', | |
| fields=[ | |
| ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |
| ('name', models.CharField(max_length=160)), | |
| ('description', models.TextField(blank=True)), | |
| ('file', models.FileField(upload_to=webapp.models.dataset_upload_path)), | |
| ('rows', models.IntegerField(blank=True, null=True)), | |
| ('cols', models.IntegerField(blank=True, null=True)), | |
| ('is_active', models.BooleanField(default=True)), | |
| ('created_at', models.DateTimeField(auto_now_add=True)), | |
| ], | |
| ), | |
| migrations.CreateModel( | |
| name='SavedModel', | |
| fields=[ | |
| ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |
| ('name', models.CharField(max_length=120)), | |
| ('file', models.FileField(upload_to=webapp.models.model_upload_path)), | |
| ('public', models.BooleanField(default=False)), | |
| ('test_auc', models.FloatField(blank=True, null=True)), | |
| ('test_f1', models.FloatField(blank=True, null=True)), | |
| ('created_at', models.DateTimeField(auto_now_add=True)), | |
| ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='saved_models', to=settings.AUTH_USER_MODEL)), | |
| ], | |
| ), | |
| ] | |