title: Adding deep learning model at django
body: <p><img src="https://i.stack.imgur.com/bIFGO.png" alt="" /></p>
  <p>ml: django app folder
  test: pytorch python code folder --predict.py(model)</p>
  <p>And I wanted to use procees function that i made at predcit.py at views.py</p>
  <p>process function</p>
  <pre><code>def process():
  for img_file in os.listdir('C:\\Users\\user\\Desktop\\model\\project\\ml\\test\\images'):
  
      img_path = os.path.join('images', img_file)
  
      predition = predict_breed_transfer(model, img_path)
      print(predition)
      print(&quot;image_file_name: {0}, \t predition breed: {1}\n\n&quot;.format(img_path, predition))
  
  return (predition)
  </code></pre>
  <p>views.py at ml folder</p>
  <pre><code>from django.shortcuts import render
  from .test.predict import *
  
  
  def predict(request):
      pred=process()
  
      return render(request, &quot;predict.html&quot;,{'pred':pred})
  </code></pre>
  <p>When i run the server at my local computer, it gets pred as none.
  I don't understand why views.py doesn't run 'predict_breed_transfer'function...</p>