Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -315,6 +315,15 @@ example_list = load_examples(examples_csv_path)
|
|
| 315 |
# Create Gradio interface
|
| 316 |
with gr.Blocks(theme="Respair/Shiki@9.1.0", css=css) as demo:
|
| 317 |
gr.Markdown('<h1 style="text-align: center; width: 100%; display: block;">🌸 Takane</h1>')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
|
| 319 |
with gr.Tabs():
|
| 320 |
with gr.TabItem("Speech Generation"):
|
|
@@ -597,7 +606,7 @@ with gr.Blocks(theme="Respair/Shiki@9.1.0", css=css) as demo:
|
|
| 597 |
|
| 598 |
<p style="color: #1a1a1a; font-weight: 500; line-height: 1.8; margin-bottom: 20px; font-size: 16px;">
|
| 599 |
Takane also comes with an Anti-Hallucination Algorithm (AHA) that generates a few candidates in parallel and automatically returns the best one at the cost of introducing a small overhead.
|
| 600 |
-
If you need the fastest response time possible, feel free to enable the Turbo mode. It will disable AHA and tweak the parameters internally to produce samples as fast as 2-3 seconds
|
| 601 |
</p>
|
| 602 |
|
| 603 |
<p style="color: #1a1a1a; font-weight: 500; line-height: 1.8; margin-bottom: 20px; font-size: 16px;">
|
|
|
|
| 315 |
# Create Gradio interface
|
| 316 |
with gr.Blocks(theme="Respair/Shiki@9.1.0", css=css) as demo:
|
| 317 |
gr.Markdown('<h1 style="text-align: center; width: 100%; display: block;">🌸 Takane</h1>')
|
| 318 |
+
gr.Markdown('''
|
| 319 |
+
<div style="text-align: center; background-color: #fff3cd; border: 1px solid #ffc107;
|
| 320 |
+
border-radius: 8px; padding: 12px; margin: 10px auto; max-width: 800px;">
|
| 321 |
+
<p style="color: #856404; margin: 0; font-weight: 500;">
|
| 322 |
+
⚠️ This demo doesn't have load balancing or parallel query handling.
|
| 323 |
+
You must wait for everyone else to finish first during busy times. Sorry!
|
| 324 |
+
</p>
|
| 325 |
+
</div>
|
| 326 |
+
''')
|
| 327 |
|
| 328 |
with gr.Tabs():
|
| 329 |
with gr.TabItem("Speech Generation"):
|
|
|
|
| 606 |
|
| 607 |
<p style="color: #1a1a1a; font-weight: 500; line-height: 1.8; margin-bottom: 20px; font-size: 16px;">
|
| 608 |
Takane also comes with an Anti-Hallucination Algorithm (AHA) that generates a few candidates in parallel and automatically returns the best one at the cost of introducing a small overhead.
|
| 609 |
+
If you need the fastest response time possible, feel free to enable the Turbo mode. It will disable AHA and tweak the parameters internally to produce samples as fast as 2-3 seconds (though due to an influx of users coming in, you probably will be qeued and have to wait!)
|
| 610 |
</p>
|
| 611 |
|
| 612 |
<p style="color: #1a1a1a; font-weight: 500; line-height: 1.8; margin-bottom: 20px; font-size: 16px;">
|