kambris commited on
Commit
f0c1948
·
verified ·
1 Parent(s): 8b2bd94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -440,13 +440,16 @@ with gr.Blocks(title="Arabic Transliterator with Google Translate") as demo:
440
  with gr.Row():
441
  with gr.Column():
442
  latin_input = gr.Textbox(
 
443
  label="Enter Latin-encoded Arabic",
444
  lines=3,
445
  placeholder="Example: ahlan wa sahlan (أهلا وسهلا)"
 
446
  )
447
 
448
  with gr.Column():
449
  arabic_output = gr.Textbox(
 
450
  label="Arabic Script",
451
  lines=3,
452
  rtl=True # Right-to-left text direction for Arabic
@@ -455,6 +458,7 @@ with gr.Blocks(title="Arabic Transliterator with Google Translate") as demo:
455
  # IPA output row
456
  with gr.Row():
457
  ipa_output = gr.Textbox(
 
458
  label="IPA Phonetic Transcription (Arabic pronunciation)",
459
  lines=2,
460
  placeholder="Shows how the Arabic sounds should be pronounced using IPA symbols"
@@ -463,10 +467,10 @@ with gr.Blocks(title="Arabic Transliterator with Google Translate") as demo:
463
  # Translation section (replaces dictionary)
464
  with gr.Row():
465
  translation_output = gr.Textbox(
 
466
  label="🌐 Google Translate Results",
467
  lines=8,
468
  placeholder="Translations and meanings will appear here...",
469
- show_copy_button=True
470
  )
471
 
472
  # Button controls
 
440
  with gr.Row():
441
  with gr.Column():
442
  latin_input = gr.Textbox(
443
+ show_copy_button=True,
444
  label="Enter Latin-encoded Arabic",
445
  lines=3,
446
  placeholder="Example: ahlan wa sahlan (أهلا وسهلا)"
447
+
448
  )
449
 
450
  with gr.Column():
451
  arabic_output = gr.Textbox(
452
+ show_copy_button=True,
453
  label="Arabic Script",
454
  lines=3,
455
  rtl=True # Right-to-left text direction for Arabic
 
458
  # IPA output row
459
  with gr.Row():
460
  ipa_output = gr.Textbox(
461
+ show_copy_button=True,
462
  label="IPA Phonetic Transcription (Arabic pronunciation)",
463
  lines=2,
464
  placeholder="Shows how the Arabic sounds should be pronounced using IPA symbols"
 
467
  # Translation section (replaces dictionary)
468
  with gr.Row():
469
  translation_output = gr.Textbox(
470
+ show_copy_button=True,
471
  label="🌐 Google Translate Results",
472
  lines=8,
473
  placeholder="Translations and meanings will appear here...",
 
474
  )
475
 
476
  # Button controls