Nada2001 commited on
Commit
c7d2dbb
·
1 Parent(s): 0b966d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import os
4
 
5
  def getResult(filename):
6
  model_name='best.pt'
7
- model = torch.hub.load( 'custom', source='local', path = model_name, force_reload = True)
8
  img = "/content/"+filename+""
9
  results = model(img)
10
  return results
 
4
 
5
  def getResult(filename):
6
  model_name='best.pt'
7
+ model = torch.hub.load( "hubconf.py",'custom', source='local', path = model_name, force_reload = True)
8
  img = "/content/"+filename+""
9
  results = model(img)
10
  return results