akhaliq HF Staff commited on
Commit
907c5a1
·
verified ·
1 Parent(s): 5fb66a1

Update Gradio app with multiple files

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -145,6 +145,21 @@ with gr.Blocks(
145
  """
146
  )
147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  with gr.Row():
149
  with gr.Column(scale=1):
150
  image_input = gr.Image(
@@ -156,7 +171,7 @@ with gr.Blocks(
156
 
157
  prompt_input = gr.Textbox(
158
  label="✍️ Motion Prompt",
159
- placeholder="Describe the motion or animation you want to see...",
160
  lines=3,
161
  value="The subject starts to move naturally",
162
  )
 
145
  """
146
  )
147
 
148
+ gr.HTML(
149
+ """
150
+ <div class="info-box">
151
+ <strong>✨ Special Tokens for Enhanced Control:</strong>
152
+ <ul>
153
+ <li><strong>Speech:</strong> <code>&lt;S&gt;Your speech content here&lt;E&gt;</code> - Text enclosed in these tags will be converted to speech</li>
154
+ <li><strong>Audio Description:</strong> <code>&lt;AUDCAP&gt;Audio description here&lt;ENDAUDCAP&gt;</code> - Describes the audio or sound effects present in the video</li>
155
+ </ul>
156
+ <br>
157
+ <strong>📝 Example Prompt:</strong><br>
158
+ <code>Dogs bark loudly at a man wearing a red shirt. The man says &lt;S&gt;Please stop barking at me!&lt;E&gt;. &lt;AUDCAP&gt;Dogs barking, angry man yelling in stern voice&lt;ENDAUDCAP&gt;.</code>
159
+ </div>
160
+ """
161
+ )
162
+
163
  with gr.Row():
164
  with gr.Column(scale=1):
165
  image_input = gr.Image(
 
171
 
172
  prompt_input = gr.Textbox(
173
  label="✍️ Motion Prompt",
174
+ placeholder="Describe the motion or animation you want to see. Use <S>text<E> for speech and <AUDCAP>description<ENDAUDCAP> for audio effects...",
175
  lines=3,
176
  value="The subject starts to move naturally",
177
  )