Spaces:
Runtime error
Runtime error
| # -*- coding: utf-8 -*- | |
| """🎬 Keras Video Classification CNN-RNN model | |
| Spaces for showing the model usage. | |
| Author: | |
| - Thomas Chaigneau @ChainYo | |
| """ | |
| import gradio as gr | |
| from huggingface_hub import from_pretrained_keras | |
| def inference(): | |
| """ | |
| Inference function. | |
| """ | |
| model = from_pretrained_keras("ChainYo/video-classification-cnn-rnn") | |
| samples = None | |
| app = gr.Interface( | |
| inference, | |
| inputs=[], | |
| outputs=[], | |
| title="Keras Video Classification CNN-RNN model", | |
| description="Keras Working Group", | |
| examples=samples | |
| ).launch(enable_queue=True, cache_examples=True) |