valencar commited on
Commit
310c92f
·
1 Parent(s): 1ce1b25
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -11,7 +11,6 @@ reduce_header_height_style = """
11
  """
12
  st.markdown(reduce_header_height_style, unsafe_allow_html=True)
13
 
14
-
15
  def predict_image(name_image):
16
 
17
  IMAGE_HEIGHT, IMAGE_WIDTH = 299, 299
@@ -48,7 +47,7 @@ st.markdown(f'<div style="padding-top:30px; padding-bottom:2px; font-size:40px;f
48
 
49
  @st.cache_data
50
  def inicializa_modelo():
51
- <<<<<<< HEAD
52
  print('carregando o modelo...')
53
  #with st.spinner('carregando o modelo...'):
54
  file = "modelo_raiox_TransferLearning_InceptionResNetV2"
@@ -58,14 +57,14 @@ def inicializa_modelo():
58
 
59
  return model
60
 
61
- =======
62
  print('carregando o modelo...')
63
  model = from_pretrained_keras("valencar/modelo_raios_x")
64
  print('modelo carregado.')
65
 
66
  return model
67
 
68
- >>>>>>> 53fd989 (er)
69
  if 'model' not in st.session_state:
70
  with st.spinner('carregando o modelo...'):
71
  st.session_state.model = inicializa_modelo()
@@ -95,15 +94,15 @@ st.markdown(f'<div style="color: #856404; background-color: #fff3cd; border-colo
95
 
96
  st.write("")
97
  st.write("")
98
- <<<<<<< HEAD
99
  st.write("")
100
  st.write("")
101
  st.write("")
102
  st.write("")
103
  st.write("")
104
- =======
105
 
106
- >>>>>>> 53fd989 (er)
 
107
 
108
  footer="\
109
  <div > \
 
11
  """
12
  st.markdown(reduce_header_height_style, unsafe_allow_html=True)
13
 
 
14
  def predict_image(name_image):
15
 
16
  IMAGE_HEIGHT, IMAGE_WIDTH = 299, 299
 
47
 
48
  @st.cache_data
49
  def inicializa_modelo():
50
+
51
  print('carregando o modelo...')
52
  #with st.spinner('carregando o modelo...'):
53
  file = "modelo_raiox_TransferLearning_InceptionResNetV2"
 
57
 
58
  return model
59
 
60
+
61
  print('carregando o modelo...')
62
  model = from_pretrained_keras("valencar/modelo_raios_x")
63
  print('modelo carregado.')
64
 
65
  return model
66
 
67
+
68
  if 'model' not in st.session_state:
69
  with st.spinner('carregando o modelo...'):
70
  st.session_state.model = inicializa_modelo()
 
94
 
95
  st.write("")
96
  st.write("")
97
+
98
  st.write("")
99
  st.write("")
100
  st.write("")
101
  st.write("")
102
  st.write("")
 
103
 
104
+
105
+
106
 
107
  footer="\
108
  <div > \