aliabd HF staff commited on
Commit
2c16735
β€’
1 Parent(s): bb777cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,6 +1,3 @@
1
- import os
2
- os.system("pip install gradio==2.9b23")
3
-
4
  from pathlib import Path
5
 
6
  import torch
@@ -29,7 +26,8 @@ state_dict = torch.load('pytorch_model.bin', map_location='cpu')
29
  model.load_state_dict(state_dict, strict=False)
30
  model.eval()
31
 
32
- def predict(im):
 
33
  if im is None:
34
  return None
35
 
 
 
 
 
1
  from pathlib import Path
2
 
3
  import torch
 
26
  model.load_state_dict(state_dict, strict=False)
27
  model.eval()
28
 
29
+ def predict(input):
30
+ im = input
31
  if im is None:
32
  return None
33