kevinpro commited on
Commit
7be16c8
·
verified ·
1 Parent(s): ca391f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,7 +72,7 @@ description = """
72
  Seed-X, a powerful series of open-source multilingual translation language models, including an instruction model, a reinforcement learning model, and a reward model. It pushes the boundaries of translation capabilities within 7 billion parameters. We develop Seed-X as an accessible, off-the-shelf tool to support the community in advancing translation research and applications:
73
  """
74
 
75
- examples_inputs = [["Seed-X is indeed a good translation model ","English","Chinese"],]
76
 
77
  with gr.Blocks() as demo:
78
  gr.Markdown(description)
@@ -87,5 +87,5 @@ with gr.Blocks() as demo:
87
  inputs=[input_text],
88
  outputs=output,
89
  )
90
- examples = gr.Examples(examples=examples_inputs,inputs=[input_text, src_lang,target_lang], fn=translate, outputs=output, cache_examples=True)
91
  demo.launch()
 
72
  Seed-X, a powerful series of open-source multilingual translation language models, including an instruction model, a reinforcement learning model, and a reward model. It pushes the boundaries of translation capabilities within 7 billion parameters. We develop Seed-X as an accessible, off-the-shelf tool to support the community in advancing translation research and applications:
73
  """
74
 
75
+ examples_inputs = [["<s>Translate the following English sentence into Chinese:\nMay the force be with you <zh>"]]
76
 
77
  with gr.Blocks() as demo:
78
  gr.Markdown(description)
 
87
  inputs=[input_text],
88
  outputs=output,
89
  )
90
+ examples = gr.Examples(examples=examples_inputs,inputs=[input_text], fn=translate, outputs=output, cache_examples=True)
91
  demo.launch()