Spaces:
Runtime error
Runtime error
Download myapp/models.py from Noel-Teens/Add-Sub: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/Noel-Teens/Add-Sub/resolve/main/myapp/models.py
- Command line
-
hf download hf://spaces/Noel-Teens/Add-Sub/myapp/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Noel-Teens/Add-Sub/resolve/main/myapp/models.py
327 Bytes
| from django.db import models | |
| # Create your models here. | |
| class Calc(models.Model): | |
| num1 = models.IntegerField() | |
| num2 = models.IntegerField() | |
| operation = models.CharField(max_length=3) | |
| time = models.DateTimeField(auto_now= True) | |
| def __str__(self): | |
| return f"{self.num1} {self.operation} {self.num2}" |