Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = [["
|
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
|
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()
|