Spaces:
Runtime error
Runtime error
Shivam Mehta
commited on
Commit
·
a775495
1
Parent(s):
ab5d3e9
Adding some examples
Browse files
app.py
CHANGED
|
@@ -174,6 +174,8 @@ def visualize_it(output):
|
|
| 174 |
to_stick_video('temp', output['bvh'], OUTPUT_FOLDER)
|
| 175 |
combine_audio_video('temp', OUTPUT_FOLDER)
|
| 176 |
return str(Path(OUTPUT_FOLDER) / 'temp_audio.mp4')
|
|
|
|
|
|
|
| 177 |
|
| 178 |
|
| 179 |
with gr.Blocks() as demo:
|
|
@@ -181,13 +183,24 @@ with gr.Blocks() as demo:
|
|
| 181 |
output = gr.State(value=None)
|
| 182 |
|
| 183 |
with gr.Box():
|
| 184 |
-
gr.
|
| 185 |
-
|
|
|
|
|
|
|
| 186 |
|
| 187 |
with gr.Row():
|
| 188 |
gr.Markdown("# Text Input")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
with gr.Row():
|
| 190 |
text = gr.Textbox(label="Text Input")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
with gr.Box():
|
| 193 |
with gr.Row():
|
|
@@ -246,7 +259,7 @@ with gr.Blocks() as demo:
|
|
| 246 |
# video,
|
| 247 |
visualize
|
| 248 |
], api_name="diff_ttsg")
|
| 249 |
-
|
| 250 |
visualize.click(
|
| 251 |
fn=visualize_it,
|
| 252 |
inputs=[output],
|
|
|
|
| 174 |
to_stick_video('temp', output['bvh'], OUTPUT_FOLDER)
|
| 175 |
combine_audio_video('temp', OUTPUT_FOLDER)
|
| 176 |
return str(Path(OUTPUT_FOLDER) / 'temp_audio.mp4')
|
| 177 |
+
|
| 178 |
+
|
| 179 |
|
| 180 |
|
| 181 |
with gr.Blocks() as demo:
|
|
|
|
| 183 |
output = gr.State(value=None)
|
| 184 |
|
| 185 |
with gr.Box():
|
| 186 |
+
with gr.Row():
|
| 187 |
+
gr.Markdown("# Diff-TTSG: Denoising probabilistic integrated speech and gesture synthesis")
|
| 188 |
+
with gr.Row():
|
| 189 |
+
gr.Markdown("### Read more about it at: [https://shivammehta25.github.io/Diff-TTSG/](https://shivammehta25.github.io/Diff-TTSG/)")
|
| 190 |
|
| 191 |
with gr.Row():
|
| 192 |
gr.Markdown("# Text Input")
|
| 193 |
+
with gr.Row():
|
| 194 |
+
gr.Markdown("Enter , to insert pause and ; for breathing pause.")
|
| 195 |
+
with gr.Row():
|
| 196 |
+
gr.Markdown("It is recommended to give spaces between punctuations and words.")
|
| 197 |
with gr.Row():
|
| 198 |
text = gr.Textbox(label="Text Input")
|
| 199 |
+
with gr.Row():
|
| 200 |
+
examples = gr.Examples(examples=[
|
| 201 |
+
"Hello world ! This is a demo of Diff T T S G .",
|
| 202 |
+
"And the train stopped, The door opened. I got out first, then Jack Kane got out, Ronan got out, Louise got out.",
|
| 203 |
+
], inputs=[text])
|
| 204 |
|
| 205 |
with gr.Box():
|
| 206 |
with gr.Row():
|
|
|
|
| 259 |
# video,
|
| 260 |
visualize
|
| 261 |
], api_name="diff_ttsg")
|
| 262 |
+
|
| 263 |
visualize.click(
|
| 264 |
fn=visualize_it,
|
| 265 |
inputs=[output],
|