leadingbridge commited on
Commit
a55dec0
1 Parent(s): d34e1c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -93,13 +93,13 @@ with gr.Blocks() as demo:
93
  proceed_button = gr.Button("Proceed")
94
  proceed_button.click(fn=sentiment_analysis, inputs=inputs, outputs=outputs)
95
  with gr.Tab("🀄Chinese Translation"):
96
- gr.Markdown("Translate an English sentence to Chinese using the OpenAI engine. Enter an English short sentence in the input box and click the 'Translate' button to get the translation result in Chinese.")
97
  inputs = gr.Textbox(placeholder="Enter a short English sentence to translate to Chinese here.")
98
  outputs = gr.Textbox(label="Translation Result")
99
  proceed_button = gr.Button("Translate")
100
  proceed_button.click(fn=translate_to_chinese, inputs=inputs, outputs=outputs)
101
  with gr.Tab("🔤English Translation"):
102
- gr.Markdown("Translate a Chinese sentence to English using the OpenAI engine. Enter a Chinese short sentence in the input box and click the 'Translate' button to get the translation result in English.")
103
  inputs = gr.Textbox(placeholder="Enter a short Chinese sentence to translate to English here.")
104
  outputs = gr.Textbox(label="Translation Result")
105
  proceed_button = gr.Button("Translate")
 
93
  proceed_button = gr.Button("Proceed")
94
  proceed_button.click(fn=sentiment_analysis, inputs=inputs, outputs=outputs)
95
  with gr.Tab("🀄Chinese Translation"):
96
+ gr.Markdown("This model translate an English sentence to Chinese using the OpenAI engine. Enter an English short sentence in the input box and click the 'Translate' button to get the translation result in Chinese.")
97
  inputs = gr.Textbox(placeholder="Enter a short English sentence to translate to Chinese here.")
98
  outputs = gr.Textbox(label="Translation Result")
99
  proceed_button = gr.Button("Translate")
100
  proceed_button.click(fn=translate_to_chinese, inputs=inputs, outputs=outputs)
101
  with gr.Tab("🔤English Translation"):
102
+ gr.Markdown("This model translate a Chinese sentence to English using the OpenAI engine. Enter a Chinese short sentence in the input box and click the 'Translate' button to get the translation result in English.")
103
  inputs = gr.Textbox(placeholder="Enter a short Chinese sentence to translate to English here.")
104
  outputs = gr.Textbox(label="Translation Result")
105
  proceed_button = gr.Button("Translate")