Spaces:
Sleeping
Sleeping
ranggaaldosas
commited on
Commit
•
4c21dce
1
Parent(s):
409f083
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import os
|
4 |
import torch
|
5 |
|
6 |
-
from model import
|
7 |
from timeit import default_timer as timer
|
8 |
from typing import Tuple, Dict
|
9 |
|
@@ -14,7 +14,7 @@ with open("class_names.txt", "r") as f: # reading them in from class_names.txt
|
|
14 |
### 2. Model and transforms preparation ###
|
15 |
|
16 |
# Create model
|
17 |
-
effnetv2, effnetv2_transforms =
|
18 |
num_classes=101, # could also use len(class_names)
|
19 |
)
|
20 |
|
|
|
3 |
import os
|
4 |
import torch
|
5 |
|
6 |
+
from model import create_effnetv2_m_model
|
7 |
from timeit import default_timer as timer
|
8 |
from typing import Tuple, Dict
|
9 |
|
|
|
14 |
### 2. Model and transforms preparation ###
|
15 |
|
16 |
# Create model
|
17 |
+
effnetv2, effnetv2_transforms = create_effnetv2_m_model(
|
18 |
num_classes=101, # could also use len(class_names)
|
19 |
)
|
20 |
|