EdBianchi commited on
Commit
d49cc52
1 Parent(s): d8367c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from transformers import pipeline
3
  from PIL import Image
4
 
5
  # set page setting
@@ -11,7 +11,7 @@ if 'history' not in st.session_state:
11
 
12
  @st.cache(persist=True)
13
  def loadModel():
14
- pipeline = pipeline(task="image-classification", model="EdBianchi/vit-fire-detection")
15
  return pipeline
16
 
17
  # PROCESSING
 
1
  import streamlit as st
2
+ from transformers import pipeline as pip
3
  from PIL import Image
4
 
5
  # set page setting
 
11
 
12
  @st.cache(persist=True)
13
  def loadModel():
14
+ pipeline = pip(task="image-classification", model="EdBianchi/vit-fire-detection")
15
  return pipeline
16
 
17
  # PROCESSING