leadingbridge commited on
Commit
01d0406
·
1 Parent(s): c2f9237

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,14 +104,14 @@ with gr.Blocks() as demo:
104
  proceed_button.click(fn=sentiment_analysis, inputs=inputs, outputs=outputs)
105
  with gr.Tab("🀄Chinese Translation"):
106
  gr.Markdown("""<h4><center>🀄Chinese Translation</center></h4>""")
107
- 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.")
108
  inputs = gr.Textbox(placeholder="Enter a short English sentence to translate to Chinese here.",lines=2)
109
  outputs = gr.Textbox(label="Translation Result")
110
  proceed_button = gr.Button("Translate")
111
  proceed_button.click(fn=openai_translation_ec, inputs=inputs, outputs=outputs)
112
  with gr.Tab("🔤English Translation"):
113
  gr.Markdown("""<h4><center>🔤English Translation</center></h4>""")
114
- 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.")
115
  inputs = gr.Textbox(placeholder="Enter a short Chinese sentence to translate to English here.",lines=2)
116
  outputs = gr.Textbox(label="Translation Result")
117
  proceed_button = gr.Button("Translate")
 
104
  proceed_button.click(fn=sentiment_analysis, inputs=inputs, outputs=outputs)
105
  with gr.Tab("🀄Chinese Translation"):
106
  gr.Markdown("""<h4><center>🀄Chinese Translation</center></h4>""")
107
+ 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.")
108
  inputs = gr.Textbox(placeholder="Enter a short English sentence to translate to Chinese here.",lines=2)
109
  outputs = gr.Textbox(label="Translation Result")
110
  proceed_button = gr.Button("Translate")
111
  proceed_button.click(fn=openai_translation_ec, inputs=inputs, outputs=outputs)
112
  with gr.Tab("🔤English Translation"):
113
  gr.Markdown("""<h4><center>🔤English Translation</center></h4>""")
114
+ 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.")
115
  inputs = gr.Textbox(placeholder="Enter a short Chinese sentence to translate to English here.",lines=2)
116
  outputs = gr.Textbox(label="Translation Result")
117
  proceed_button = gr.Button("Translate")