HussainLatiff commited on
Commit
8c45656
Β·
verified Β·
1 Parent(s): b666de2

Added instructions that appear

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -1,11 +1,27 @@
1
  import gradio as gr
2
  import os
3
 
 
4
  def video_identity(video):
5
  return video
6
 
7
 
8
- demo = gr.Interface(video_identity,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  gr.Video(),
10
  "playable_video",
11
  examples=[
@@ -14,4 +30,6 @@ demo = gr.Interface(video_identity,
14
  cache_examples=True)
15
 
16
  if __name__ == "__main__":
17
- demo.launch(share=True)
 
 
 
1
  import gradio as gr
2
  import os
3
 
4
+
5
  def video_identity(video):
6
  return video
7
 
8
 
9
+ with gr.Blocks() as demo:
10
+ gr.Markdown(
11
+ """
12
+ # Phone brr
13
+ 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.
14
+
15
+ Instructions
16
+
17
+ 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.
18
+
19
+ 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>.
20
+
21
+ 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>
22
+
23
+ """),
24
+ gr.Interface(video_identity,
25
  gr.Video(),
26
  "playable_video",
27
  examples=[
 
30
  cache_examples=True)
31
 
32
  if __name__ == "__main__":
33
+ demo.launch(share=True)
34
+
35
+