Update app.py (#2)
Browse files- Update app.py (7c767bbcab090f43ed4318dd94bb895d1492a0b3)
Co-authored-by: ASWANTH V R <[email protected]>
app.py
CHANGED
@@ -108,7 +108,7 @@ with gr.Blocks() as app:
|
|
108 |
with gr.Tab("Translation"):
|
109 |
gr.Markdown("### Upload PDF for Translation")
|
110 |
pdf_input_translation = gr.File(label="Upload PDF Document")
|
111 |
-
language_options = ["
|
112 |
language_selector = gr.Dropdown(choices=language_options, label="Select Language", value="hi")
|
113 |
translation_output = gr.File(label="Download Translated PDF")
|
114 |
translated_text_output = gr.Textbox(label="Translated Text", lines=10)
|
|
|
108 |
with gr.Tab("Translation"):
|
109 |
gr.Markdown("### Upload PDF for Translation")
|
110 |
pdf_input_translation = gr.File(label="Upload PDF Document")
|
111 |
+
language_options = ["hi", "ta", "ml", "en"] # Hindi, Tamil, Malayalam, English
|
112 |
language_selector = gr.Dropdown(choices=language_options, label="Select Language", value="hi")
|
113 |
translation_output = gr.File(label="Download Translated PDF")
|
114 |
translated_text_output = gr.Textbox(label="Translated Text", lines=10)
|