Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from tensorflow import keras
|
2 |
import gradio as gr
|
3 |
-
path_to_model = "
|
4 |
|
5 |
model = keras.models.load_model(path_to_model)
|
6 |
|
@@ -15,6 +15,6 @@ def classify_image(inp):
|
|
15 |
iface = gr.Interface(fn=classify_image,
|
16 |
inputs=gr.inputs.Image(shape=(224, 224)),
|
17 |
outputs=gr.outputs.Label(num_top_classes=4),
|
18 |
-
theme = "darkhuggingface"
|
19 |
)
|
20 |
iface.launch(debug=True)
|
|
|
1 |
from tensorflow import keras
|
2 |
import gradio as gr
|
3 |
+
path_to_model = "modelPredict.h5"
|
4 |
|
5 |
model = keras.models.load_model(path_to_model)
|
6 |
|
|
|
15 |
iface = gr.Interface(fn=classify_image,
|
16 |
inputs=gr.inputs.Image(shape=(224, 224)),
|
17 |
outputs=gr.outputs.Label(num_top_classes=4),
|
18 |
+
#theme = "darkhuggingface"
|
19 |
)
|
20 |
iface.launch(debug=True)
|