| import gradio as gr | |
| import numpy as np | |
| def greet(img): | |
| img = np.expand_dims(img, axis = 0) | |
| return np.argmax(vae.predict(img)[0]) | |
| iface = gr.Interface(fn=greet, inputs="sketchpad", outputs="text") | |
| iface.launch() |
| import gradio as gr | |
| import numpy as np | |
| def greet(img): | |
| img = np.expand_dims(img, axis = 0) | |
| return np.argmax(vae.predict(img)[0]) | |
| iface = gr.Interface(fn=greet, inputs="sketchpad", outputs="text") | |
| iface.launch() |