Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
refine UI
Browse files
app.py
CHANGED
|
@@ -230,6 +230,10 @@ with gr.Blocks(css="""
|
|
| 230 |
.markdown-text p {
|
| 231 |
font-size: 20px !important;
|
| 232 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
""") as demo:
|
| 234 |
gr.Markdown("# Streaming Speech-to-Text Translation with Open-LiveTranslate")
|
| 235 |
gr.Markdown("""**Instructions:**
|
|
@@ -291,14 +295,14 @@ with gr.Blocks(css="""
|
|
| 291 |
stream_every=0.96
|
| 292 |
)
|
| 293 |
|
| 294 |
-
# Typewriter timer — ticks every 0.
|
| 295 |
-
typewriter_timer = gr.Timer(0.
|
| 296 |
typewriter_timer.tick(
|
| 297 |
typewriter_tick,
|
| 298 |
inputs=[messages_state, displayed_text_state, language_pair_selector],
|
| 299 |
outputs=[translation_output, displayed_text_state],
|
| 300 |
)
|
| 301 |
|
| 302 |
-
gr.Markdown("**Note:** Currently supports English → Chinese translation only. This model is trained with the method described in the ACL 2025 paper [InfiniSST: Simultaneous Translation of Unbounded Speech with Large Language Model](https://aclanthology.org/2025.findings-acl.157/) by Siqi Ouyang, Xi Xu, and Lei Li.", elem_classes=["
|
| 303 |
|
| 304 |
demo.launch(share=True)
|
|
|
|
| 230 |
.markdown-text p {
|
| 231 |
font-size: 20px !important;
|
| 232 |
}
|
| 233 |
+
.note-text p {
|
| 234 |
+
font-size: 16px !important;
|
| 235 |
+
color: #666;
|
| 236 |
+
}
|
| 237 |
""") as demo:
|
| 238 |
gr.Markdown("# Streaming Speech-to-Text Translation with Open-LiveTranslate")
|
| 239 |
gr.Markdown("""**Instructions:**
|
|
|
|
| 295 |
stream_every=0.96
|
| 296 |
)
|
| 297 |
|
| 298 |
+
# Typewriter timer — ticks every 0.02s to reveal text one unit at a time
|
| 299 |
+
typewriter_timer = gr.Timer(0.02)
|
| 300 |
typewriter_timer.tick(
|
| 301 |
typewriter_tick,
|
| 302 |
inputs=[messages_state, displayed_text_state, language_pair_selector],
|
| 303 |
outputs=[translation_output, displayed_text_state],
|
| 304 |
)
|
| 305 |
|
| 306 |
+
gr.Markdown("**Note:** Currently supports English → Chinese translation only. This model is trained with the method described in the ACL 2025 paper [InfiniSST: Simultaneous Translation of Unbounded Speech with Large Language Model](https://aclanthology.org/2025.findings-acl.157/) by Siqi Ouyang, Xi Xu, and Lei Li.", elem_classes=["note-text"])
|
| 307 |
|
| 308 |
demo.launch(share=True)
|