Thomas Chaigneau commited on
Commit
df8cba4
1 Parent(s): 8a98de4

init gradio app

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. app.py +29 -0
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: Keras Video Classification Cnn Rnn
3
- emoji: 🏢
4
- colorFrom: blue
5
- colorTo: pink
6
  sdk: gradio
7
  app_file: app.py
8
  pinned: false
 
1
  ---
2
  title: Keras Video Classification Cnn Rnn
3
+ emoji: 🎬
4
+ colorFrom: red
5
+ colorTo: yellow
6
  sdk: gradio
7
  app_file: app.py
8
  pinned: false
app.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ """🎬 Keras Video Classification CNN-RNN model
3
+
4
+ Spaces for showing the model usage.
5
+
6
+ Author:
7
+ - Thomas Chaigneau @ChainYo
8
+ """
9
+ import gradio as gr
10
+
11
+ from huggingface_hub import from_pretrained_keras
12
+
13
+
14
+ def inference():
15
+ """
16
+ Inference function.
17
+ """
18
+
19
+ model = from_pretrained_keras("ChainYo/video-classification-cnn-rnn")
20
+ samples = None
21
+
22
+ app = gr.Interface(
23
+ inference,
24
+ inputs=[],
25
+ outputs=[],
26
+ title="Keras Video Classification CNN-RNN model",
27
+ description="Keras Working Group",
28
+ examples=samples
29
+ ).launch(enable_queue=True, cache_examples=True)