File size: 600 Bytes
df8cba4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
# -*- 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)