File size: 332 Bytes
df45c31 34ccbbc df45c31 34ccbbc df45c31 34ccbbc df45c31 34ccbbc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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() |