Spaces:
Runtime error
Runtime error
File size: 1,459 Bytes
b666de2 8c45656 9c3daa1 d2ea659 014ee66 8c45656 9c3daa1 ba27b4a b666de2 9c3daa1 cc5f18e ba27b4a 8c45656 | 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 30 31 32 33 34 35 36 | import gradio as gr
import os
def video_identity(video):
return video
with gr.Blocks() as demo:
gr.Markdown(
"""
# Phone brr
Welcome to the Hugging face Space of Phone brr we aim to create more immersive content for mobile phones with the use of haptic audio, this demo focuses on working for a very commonly used special effect of explosions hope you enjoy it.
Instructions
Step 1: Upload the example video to get the relevant timeframes that require haptics <a href="https://portal.vision.cognitive.azure.com/demo/video-summary-and-frame-locator">Azure Cognitive Services Video Summary and Frame Locator</a> with explosions as the query.
Step 2: Download the generated audio from <a href="https://phonebrrdemonstration2.blob.core.windows.net/audio3second0001/3_second_explosion_00001.flac">this ai-generated haptic audio</a>.
Step 3: Mix the Audio using any app of your choice and master the audio with <a href="https://aimastering.com/">ai-mastering program</a>
"""),
gr.Interface(video_identity,
gr.Video(),
"playable_video",
examples=[
os.path.join(os.path.dirname(__file__),
"video/test_video.mp4")],
cache_examples=True)
if __name__ == "__main__":
demo.launch(share=True)
|