Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,10 @@ import torch
|
|
5 |
from model import TinyCNN
|
6 |
from timeit import default_timer as timer
|
7 |
from typing import Tuple, Dict
|
|
|
|
|
8 |
|
|
|
9 |
# Setup class names
|
10 |
with open("class_names.txt", "r") as f: # reading them in from class_names.txt
|
11 |
class_names = [food_name.strip() for food_name in f.readlines()]
|
|
|
5 |
from model import TinyCNN
|
6 |
from timeit import default_timer as timer
|
7 |
from typing import Tuple, Dict
|
8 |
+
import torch
|
9 |
+
import torchvision
|
10 |
|
11 |
+
from torch import nn
|
12 |
# Setup class names
|
13 |
with open("class_names.txt", "r") as f: # reading them in from class_names.txt
|
14 |
class_names = [food_name.strip() for food_name in f.readlines()]
|