Spaces:
Runtime error
Runtime error
Thomas Chaigneau
commited on
Commit
·
df8cba4
1
Parent(s):
8a98de4
init gradio app
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
title: Keras Video Classification Cnn Rnn
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
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)
|