languages
Browse files
app.py
CHANGED
|
@@ -31,8 +31,8 @@ with gr.Blocks() as interface:
|
|
| 31 |
gr.Markdown("# PDF Text Aligner\nUpload two PDF files and select languages to align the text.")
|
| 32 |
source_file = gr.File(label="Upload Source PDF")
|
| 33 |
target_file = gr.File(label="Upload Target PDF")
|
| 34 |
-
lang1 = gr.Dropdown(choices=["en", "es", "fr", "
|
| 35 |
-
lang2 = gr.Dropdown(choices=["en", "es", "fr", "
|
| 36 |
start_button = gr.Button(value="Start")
|
| 37 |
aligned_html = gr.HTML(label="Aligned DataFrame")
|
| 38 |
download_button = gr.File(label="Download Aligned Data as Excel")
|
|
|
|
| 31 |
gr.Markdown("# PDF Text Aligner\nUpload two PDF files and select languages to align the text.")
|
| 32 |
source_file = gr.File(label="Upload Source PDF")
|
| 33 |
target_file = gr.File(label="Upload Target PDF")
|
| 34 |
+
lang1 = gr.Dropdown(choices=["en", "es", "fr", "zh", "ar", "ru", "pt"], label="Select Language 1")
|
| 35 |
+
lang2 = gr.Dropdown(choices=["en", "es", "fr", "zh", "ar", "ru", "pt"], label="Select Language 2", value="es")
|
| 36 |
start_button = gr.Button(value="Start")
|
| 37 |
aligned_html = gr.HTML(label="Aligned DataFrame")
|
| 38 |
download_button = gr.File(label="Download Aligned Data as Excel")
|