Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -2
src/streamlit_app.py
CHANGED
|
@@ -3,9 +3,11 @@ os.environ["TF_USE_LEGACY_KERAS"] = "1"
|
|
| 3 |
|
| 4 |
import streamlit as st
|
| 5 |
import numpy as np
|
| 6 |
-
from tensorflow import keras
|
| 7 |
-
from tensorflow.keras.applications.efficientnet import preprocess_input
|
| 8 |
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# -----------------------------------
|
| 11 |
# CONFIG
|
|
|
|
| 3 |
|
| 4 |
import streamlit as st
|
| 5 |
import numpy as np
|
|
|
|
|
|
|
| 6 |
from PIL import Image
|
| 7 |
+
import tensorflow as tf
|
| 8 |
+
|
| 9 |
+
from tensorflow.keras.models import load_model
|
| 10 |
+
from tensorflow.keras.applications.efficientnet import preprocess_input
|
| 11 |
|
| 12 |
# -----------------------------------
|
| 13 |
# CONFIG
|