Spaces:
Runtime error
Runtime error
scontess
commited on
Commit
Β·
8438089
1
Parent(s):
7308952
dopopull
Browse files- 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")
|