CharadesEgo / app.py
gina9726's picture
Update app.py
b8d343c verified
raw
history blame
879 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
#def video_identity(video):
# return hello
examples = [
"https://ak.picdn.net/shutterstock/videos/21179416/preview/stock-footage-aerial-shot-winter-forest.mp4",
"https://ak.picdn.net/shutterstock/videos/5629184/preview/stock-footage-senior-couple-looking-through-binoculars-on-sailboat-together-shot-on-red-epic-for-high-quality-k.mp4",
"https://ak.picdn.net/shutterstock/videos/1063125190/preview/stock-footage-a-beautiful-cookie-with-oranges-lies-on-a-green-tablecloth.mp4"
]
iface = gr.PlayableVideo(examples[0])
#iface = gr.Interface(video_identity,
# gr.Video(),
# "playable_video",
# examples=examples,
# cache_examples=True)
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()