arj7192 commited on
Commit
880756a
·
verified ·
1 Parent(s): da9757a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -14
app.py CHANGED
@@ -610,20 +610,23 @@ with gr.Blocks(title="Nativ - Demo") as demo:
610
 
611
  # Translation editing section
612
  with gr.Row():
613
- translations_text = gr.Textbox(
614
- label="Edit Translations (one per line)",
615
- lines=5,
616
- placeholder="Edit translations here..."
617
- )
618
- font_selector_f = gr.Dropdown(
619
- choices=['Arial', 'Ldfcomicsansbold', 'Times New Roman', 'georgia', 'calibri', 'Verdana', 'omniscript_bold', 'helvetica'], # Add more fonts as needed
620
- value='omniscript_bold',
621
- label="Select Font"
622
- )
623
- font_color_picker_f = gr.ColorPicker(
624
- value="#000000", # Default color: black
625
- label="Select Font Color"
626
- )
 
 
 
627
  update_btn = gr.Button("Apply Changes")
628
 
629
  def process_and_show_translations(image, source_lang, target_lang, mode, font, font_color):
 
610
 
611
  # Translation editing section
612
  with gr.Row():
613
+ with gr.Column():
614
+ translations_text = gr.Textbox(
615
+ label="Edit Translations (one per line)",
616
+ lines=5,
617
+ placeholder="Edit translations here..."
618
+ )
619
+ with gr.Column():
620
+ font_selector_f = gr.Dropdown(
621
+ choices=['Arial', 'Ldfcomicsansbold', 'Times New Roman', 'georgia', 'calibri', 'Verdana', 'omniscript_bold', 'helvetica'], # Add more fonts as needed
622
+ value='omniscript_bold',
623
+ label="Select Font"
624
+ )
625
+ font_color_picker_f = gr.ColorPicker(
626
+ value="#000000", # Default color: black
627
+ label="Select Font Color"
628
+ )
629
+ with gr.Column():
630
  update_btn = gr.Button("Apply Changes")
631
 
632
  def process_and_show_translations(image, source_lang, target_lang, mode, font, font_color):