faustoont commited on
Commit
787a15f
·
1 Parent(s): aa9ba14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -42,6 +42,8 @@ if uploaded_file is not None:
42
  tensor,tensor.shape
43
  custom_pred = model.forward(tensor).detach().numpy() # Forward is the python method defined inside the resnet.
44
  custom_pred
 
 
45
  elif ".csv" in uploaded_file.name: #csv check
46
  dataframe = pd.read_csv(uploaded_file)
47
  st.write(dataframe)
 
42
  tensor,tensor.shape
43
  custom_pred = model.forward(tensor).detach().numpy() # Forward is the python method defined inside the resnet.
44
  custom_pred
45
+ st.write(f'Predicted: {id2class[np.argmax(custom_pred)]}')
46
+
47
  elif ".csv" in uploaded_file.name: #csv check
48
  dataframe = pd.read_csv(uploaded_file)
49
  st.write(dataframe)