Palplatine commited on
Commit
b638b16
1 Parent(s): 996b29b

version streamlit

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -49,7 +49,7 @@ with st.sidebar:
49
 
50
  #####################################################################################################################################
51
  st.title('Facebook: Hateful Memes recognition')
52
- st.divider()
53
 
54
  # Sélection image
55
  img_filepath = 'static/images_streamlit'
@@ -65,7 +65,7 @@ with st.expander('Want to see some memes?'):
65
  with col2:
66
  st.image(f'{img_filepath}/{selected_image}')
67
 
68
- st.divider()
69
  #####################################################################################################################################
70
 
71
  # Hateful test
@@ -97,7 +97,7 @@ with st.expander('Hateful? Non-hateful?'):
97
  except:
98
  st.write(f'"{word}" is not in our hateful and non-hateful vocabulary.')
99
 
100
- st.divider()
101
 
102
  #####################################################################################################################################
103
 
@@ -169,7 +169,7 @@ with st.expander('Select to choose how many top words you want to see and their
169
  st.pyplot(fig)
170
 
171
 
172
- st.divider()
173
 
174
  #####################################################################################################################################
175
 
@@ -179,7 +179,7 @@ st.write('Grad Cam if it works')
179
 
180
 
181
 
182
- st.divider()
183
  #####################################################################################################################################
184
 
185
  # Testing some sentences
@@ -212,7 +212,7 @@ with st.expander('Input a sentence and check the probability of it being hateful
212
  else:
213
  st.write(f"Shame on you, it's hateful!!!")
214
 
215
- st.divider()
216
  #####################################################################################################################################
217
  col1, col2, col3, col4, col5 = st.columns(5)
218
  with col5:
 
49
 
50
  #####################################################################################################################################
51
  st.title('Facebook: Hateful Memes recognition')
52
+ st.write("---")
53
 
54
  # Sélection image
55
  img_filepath = 'static/images_streamlit'
 
65
  with col2:
66
  st.image(f'{img_filepath}/{selected_image}')
67
 
68
+ st.write("---")
69
  #####################################################################################################################################
70
 
71
  # Hateful test
 
97
  except:
98
  st.write(f'"{word}" is not in our hateful and non-hateful vocabulary.')
99
 
100
+ st.write("---")
101
 
102
  #####################################################################################################################################
103
 
 
169
  st.pyplot(fig)
170
 
171
 
172
+ st.write("---")
173
 
174
  #####################################################################################################################################
175
 
 
179
 
180
 
181
 
182
+ st.write("---")
183
  #####################################################################################################################################
184
 
185
  # Testing some sentences
 
212
  else:
213
  st.write(f"Shame on you, it's hateful!!!")
214
 
215
+ st.write("---")
216
  #####################################################################################################################################
217
  col1, col2, col3, col4, col5 = st.columns(5)
218
  with col5: