Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,9 @@ import gradio as gr
|
|
| 3 |
import tensorflow as tf
|
| 4 |
import numpy as np
|
| 5 |
from tensorflow.keras.models import load_model
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
model=load_model('best_model_76.h5')
|
| 8 |
|
| 9 |
def classify_image(inp):
|
|
|
|
| 3 |
import tensorflow as tf
|
| 4 |
import numpy as np
|
| 5 |
from tensorflow.keras.models import load_model
|
| 6 |
+
import os
|
| 7 |
+
os.environ['TF_KERAS'] = '1'
|
| 8 |
+
#os.environ['TF_ENABLE_ONEDNN_OPTS']=0
|
| 9 |
model=load_model('best_model_76.h5')
|
| 10 |
|
| 11 |
def classify_image(inp):
|