chap0lin commited on
Commit
91f5c81
1 Parent(s): 6202c7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -7
app.py CHANGED
@@ -122,6 +122,9 @@ def classify(new_column = True):
122
  else:
123
  return Image.open(r"inelegivel.png")
124
 
 
 
 
125
  def gen_output(data):
126
  return "output.xlsx"
127
 
@@ -134,13 +137,15 @@ reconstructed_model_CNN = keras.models.load_model("best weights CNN.h5",
134
  "recall_m":recall_m})
135
 
136
  def app(operacao, resultado, dados):
137
-
138
- boxes = {'Color': ['Green','Green','Green','Blue','Blue','Red','Red','Red'],
139
- 'Shape': ['Rectangle','Rectangle','Square','Rectangle','Square','Square','Square','Rectangle'],
140
- 'Price': [10,15,5,5,10,15,15,5]
141
- }
142
- df = pd.DataFrame(boxes, columns= ['Color','Shape','Price'])
143
- df.to_excel("output.xlsx")
 
 
144
 
145
  if operacao === "Pré-processamento + Classificação" :
146
  pre_process()
 
122
  else:
123
  return Image.open(r"inelegivel.png")
124
 
125
+ dataMCTI['opo_pre_tkn'] = sentencesMCTIList_xp8
126
+ dataMCTI['opo_pre'] = sentencesMCTIList_xp8_sentences
127
+
128
  def gen_output(data):
129
  return "output.xlsx"
130
 
 
137
  "recall_m":recall_m})
138
 
139
  def app(operacao, resultado, dados):
140
+ data = pd.read_excel(dados)
141
+
142
+ # boxes = {'Color': ['Green','Green','Green','Blue','Blue','Red','Red','Red'],
143
+ # 'Shape': ['Rectangle','Rectangle','Square','Rectangle','Square','Square','Square','Rectangle'],
144
+ # 'Price': [10,15,5,5,10,15,15,5]
145
+ # }
146
+ # df = pd.DataFrame(boxes, columns= ['Color','Shape','Price'])
147
+ data.to_excel("output.xlsx")
148
+ return "output.xlsx"
149
 
150
  if operacao === "Pré-processamento + Classificação" :
151
  pre_process()