Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import torch
|
2 |
import torch.nn as nn
|
3 |
-
from config import
|
4 |
import gradio as gr
|
5 |
|
6 |
# Load the model
|
7 |
-
model =
|
8 |
model.load_state_dict(torch.load("pytorch_model.pth", map_location=torch.device("cpu")))
|
9 |
model.eval()
|
10 |
|
|
|
1 |
import torch
|
2 |
import torch.nn as nn
|
3 |
+
from config import MLP
|
4 |
import gradio as gr
|
5 |
|
6 |
# Load the model
|
7 |
+
model = MLP()
|
8 |
model.load_state_dict(torch.load("pytorch_model.pth", map_location=torch.device("cpu")))
|
9 |
model.eval()
|
10 |
|