Update app.py
Browse files439 unmodified lines4404414424434444454464474484494504514522 unmodified lines4554564574584594602 unmodified lines463464465466467468469470471472439 unmodified lineswith gr.Row():with gr.Column():latin_input = gr.Textbox(label="Enter Latin-encoded Arabic",lines=3,placeholder="Example: ahlan wa sahlan (أهلا وسهلا)")with gr.Column():arabic_output = gr.Textbox(label="Arabic Script",lines=3,rtl=True # Right-to-left text direction for Arabic2 unmodified lines# IPA output rowwith gr.Row():ipa_output = gr.Textbox(label="IPA Phonetic Transcription (Arabic pronunciation)",lines=2,placeholder="Shows how the Arabic sounds should be pronounced using IPA symbols"2 unmodified lines# Translation section (replaces dictionary)with gr.Row():translation_output = gr.Textbox(label="🌐 Google Translate Results",lines=8,placeholder="Translations and meanings will appear here...",show_copy_button=True)# Button controls439 unmodified lines4404414424434444454464474484494504514524534544552 unmodified lines4584594604614624634642 unmodified lines467468469470471472473474475476439 unmodified lineswith gr.Row():with gr.Column():latin_input = gr.Textbox(show_copy_button=True,label="Enter Latin-encoded Arabic",lines=3,placeholder="Example: ahlan wa sahlan (أهلا وسهلا)")with gr.Column():arabic_output = gr.Textbox(show_copy_button=True,label="Arabic Script",lines=3,rtl=True # Right-to-left text direction for Arabic2 unmodified lines# IPA output rowwith gr.Row():ipa_output = gr.Textbox(show_copy_button=True,label="IPA Phonetic Transcription (Arabic pronunciation)",lines=2,placeholder="Shows how the Arabic sounds should be pronounced using IPA symbols"2 unmodified lines# Translation section (replaces dictionary)with gr.Row():translation_output = gr.Textbox(show_copy_button=True,label="🌐 Google Translate Results",lines=8,placeholder="Translations and meanings will appear here...",)# Button controls
app.py+5-1