abcdef12356 commited on
Commit
3af45a2
·
1 Parent(s): 34705d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import numpy as np
2
  import base64
3
  import cv2
4
- import streamlit as st
5
  from fastai.vision.all import *
 
6
  st.markdown('<h1 style="color:black;">BDI Image classification model</h1>', unsafe_allow_html=True)
7
 
8
  @st.cache(allow_output_mutation=True)
@@ -15,8 +15,8 @@ def get_base64_of_bin_file(bin_file):
15
  learn = load_learner('export (5).pkl')
16
 
17
  categories = ('Dog Destroying Stuff','Neutral')
18
- upload= st.file_uploader('Insert image for classification', type=['png','jpg'])
19
- c1, c2= st.columns(2)
20
  if upload is not None:
21
  im= Image.open(upload)
22
  c1.header('Input Image')
 
1
  import numpy as np
2
  import base64
3
  import cv2
 
4
  from fastai.vision.all import *
5
+ import streamlit as st
6
  st.markdown('<h1 style="color:black;">BDI Image classification model</h1>', unsafe_allow_html=True)
7
 
8
  @st.cache(allow_output_mutation=True)
 
15
  learn = load_learner('export (5).pkl')
16
 
17
  categories = ('Dog Destroying Stuff','Neutral')
18
+ upload = st.file_uploader('Insert image for classification', type=['png','jpg'])
19
+ c1, c2 = st.columns(2)
20
  if upload is not None:
21
  im= Image.open(upload)
22
  c1.header('Input Image')