Update Gradio app with multiple files
Browse files
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><S>Your speech content here<E></code> - Text enclosed in these tags will be converted to speech</li>
|
| 154 |
+
<li><strong>Audio Description:</strong> <code><AUDCAP>Audio description here<ENDAUDCAP></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 <S>Please stop barking at me!<E>. <AUDCAP>Dogs barking, angry man yelling in stern voice<ENDAUDCAP>.</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 |
)
|