Spaces:
Runtime error
Runtime error
File size: 277 Bytes
1a5d306 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import gradio as gr
import tensorflow as tf
import numpy as np
model = tf.keras.models.load_model('')
model =
def image_classifier(inp):
return {'cat': 0.3, 'dog': 0.7}
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
demo.launch() |