3f98a5e 8ce028d 3f98a5e
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr import pickle loaded_model = pickle.load(open("model.pkl", "rb")) def greet(img): pred = loaded_model(img) return pred iface = gr.Interface(fn=greet, inputs="text", outputs="text") iface.launch()