Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -279,11 +279,13 @@ with gr.Blocks(title="📚 Bilingual Book Builder") as demo:
|
|
| 279 |
source_lang = gr.Textbox(label="Source language, e.g. en, ru, de", placeholder="Auto‑detect")
|
| 280 |
target_lang = gr.Textbox(label="Target language, e.g. en, ru, de", placeholder="Auto‑detect")
|
| 281 |
with gr.Column():
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
|
|
|
|
|
|
| 287 |
|
| 288 |
process_btn.click(
|
| 289 |
fn=submit_job,
|
|
|
|
| 279 |
source_lang = gr.Textbox(label="Source language, e.g. en, ru, de", placeholder="Auto‑detect")
|
| 280 |
target_lang = gr.Textbox(label="Target language, e.g. en, ru, de", placeholder="Auto‑detect")
|
| 281 |
with gr.Column():
|
| 282 |
+
with gr.Row():
|
| 283 |
+
process_btn = gr.Button("🚀 Build Bilingual EPUB", variant="primary")
|
| 284 |
+
cancel_btn = gr.Button("❌ Cancel", variant="stop", visible=False)
|
| 285 |
+
refresh_btn = gr.Button("🔄 Check Status")
|
| 286 |
+
status_msg = gr.Markdown("")
|
| 287 |
+
with gr.Row():
|
| 288 |
+
output_file = gr.File(label="Download Bilingual EPUB", interactive=False, visible=False)
|
| 289 |
|
| 290 |
process_btn.click(
|
| 291 |
fn=submit_job,
|