import keras | |
import gradio as gr | |
import numpy as np | |
import pandas as pd | |
model = keras.models.load_model('model.h5') | |
def analyse(image): | |
data = image.reshape((1, 128, 128, 3)) | |
return model.predict(data) | |
iface = gr.Interface( | |
analyse, | |
gr.inputs.Image(shape=(128,128)), | |
"text", | |
examples=[ | |
], | |
) | |
iface.launch() |