scontess commited on
Commit
8438089
Β·
1 Parent(s): 7308952
Files changed (1) hide show
  1. src/streamlit_app.py +1 -2
src/streamlit_app.py CHANGED
@@ -1,5 +1,4 @@
1
  import streamlit as st
2
- import tensorflow_datasets as tfds
3
  import tensorflow as tf
4
  import numpy as np
5
  import time
@@ -106,7 +105,7 @@ if st.button("πŸ”Ž Genera matrice di confusione per validazione"):
106
  st.write("βœ… Matrice di confusione generata!")
107
 
108
  # πŸ“Œ Grafico per Loss e Accuracy con validazione
109
- if history:
110
  fig, ax = plt.subplots(1, 2, figsize=(12, 5))
111
  ax[0].plot(history.history["loss"], label="Training Loss")
112
  ax[0].plot(history.history["val_loss"], label="Validation Loss")
 
1
  import streamlit as st
 
2
  import tensorflow as tf
3
  import numpy as np
4
  import time
 
105
  st.write("βœ… Matrice di confusione generata!")
106
 
107
  # πŸ“Œ Grafico per Loss e Accuracy con validazione
108
+ if history is not None:
109
  fig, ax = plt.subplots(1, 2, figsize=(12, 5))
110
  ax[0].plot(history.history["loss"], label="Training Loss")
111
  ax[0].plot(history.history["val_loss"], label="Validation Loss")