baobuiquang commited on
Commit
990a60d
·
verified ·
1 Parent(s): 1d77098

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -91,7 +91,7 @@ Below is the pure text that user needs to translate. Translate it to English:
91
  # ====================================================================================================
92
 
93
  with gr.Blocks() as app_001:
94
- gr_01_A = gr.MultimodalTextbox(sources=[], placeholder="Ask Nyx anything", html_attributes= offspellcheck, autofocus=True, show_label=False, container=False)
95
  gr_01_B = gr.Markdown(container=False, elem_classes="gr_XX_B")
96
  gr_01_C = gr.Markdown(container=False)
97
  gr.HTML("<div style='color: grey; text-align: center; font-size: 12px;'>Nyx can make mistakes, double-check information.<div>", container=False)
@@ -107,7 +107,7 @@ with gr.Blocks() as app_001:
107
  )
108
 
109
  with gr.Blocks() as app_002:
110
- gr_02_A = gr.MultimodalTextbox(sources=[], placeholder="Translate English to Vietnamese", html_attributes= offspellcheck, autofocus=True, show_label=False, container=False)
111
  gr_02_B = gr.Markdown(container=False, elem_classes="gr_XX_B")
112
  gr_02_C = gr.Markdown(container=False)
113
  gr.on(
@@ -122,7 +122,7 @@ with gr.Blocks() as app_002:
122
  )
123
 
124
  with gr.Blocks() as app_003:
125
- gr_03_A = gr.MultimodalTextbox(sources=[], placeholder="Dịch tiếng Việt sang tiếng Anh", html_attributes= offspellcheck, autofocus=True, show_label=False, container=False)
126
  gr_03_B = gr.Markdown(container=False, elem_classes="gr_XX_B")
127
  gr_03_C = gr.Markdown(container=False)
128
  gr.on(
 
91
  # ====================================================================================================
92
 
93
  with gr.Blocks() as app_001:
94
+ gr_01_A = gr.MultimodalTextbox(sources=[], placeholder="Ask Nyx anything", max_plain_text_length=99999, html_attributes= offspellcheck, autofocus=True, show_label=False, container=False)
95
  gr_01_B = gr.Markdown(container=False, elem_classes="gr_XX_B")
96
  gr_01_C = gr.Markdown(container=False)
97
  gr.HTML("<div style='color: grey; text-align: center; font-size: 12px;'>Nyx can make mistakes, double-check information.<div>", container=False)
 
107
  )
108
 
109
  with gr.Blocks() as app_002:
110
+ gr_02_A = gr.MultimodalTextbox(sources=[], placeholder="Translate English to Vietnamese", max_plain_text_length=99999, html_attributes= offspellcheck, autofocus=True, show_label=False, container=False)
111
  gr_02_B = gr.Markdown(container=False, elem_classes="gr_XX_B")
112
  gr_02_C = gr.Markdown(container=False)
113
  gr.on(
 
122
  )
123
 
124
  with gr.Blocks() as app_003:
125
+ gr_03_A = gr.MultimodalTextbox(sources=[], placeholder="Dịch tiếng Việt sang tiếng Anh", max_plain_text_length=99999, html_attributes= offspellcheck, autofocus=True, show_label=False, container=False)
126
  gr_03_B = gr.Markdown(container=False, elem_classes="gr_XX_B")
127
  gr_03_C = gr.Markdown(container=False)
128
  gr.on(