Moditha24 commited on
Commit
6dd59cc
·
verified ·
1 Parent(s): c68a924

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import torch
2
  import torch.nn as nn
3
- from config import Net # Make sure this matches your class name
4
  import gradio as gr
5
 
6
  # Load the model
7
- model = Net()
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