MihaiHuggingFace commited on
Commit
9e210c8
·
verified ·
1 Parent(s): d29b9f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -79,10 +79,10 @@ with gr.Blocks() as app:
79
  with gr.Row():
80
  gr.Markdown(markdown)
81
  with gr.Column():
82
- input_text = gr.components.Textbox(label="Input Text", value="Raccoons are fascinating creatures, but I prefer opossums.")
83
  source_lang = gr.components.Dropdown(label="Source Language", value="English", choices=list(LANG_CODES.keys()))
84
  target_lang = gr.components.Dropdown(label="Target Language", value="toki pona", choices=list(LANG_CODES.keys()))
85
- return_seqs = gr.Slider(label="Number of return sequences", value=3, minimum=1, maximum=12, step=1)
86
 
87
  inputs=[input_text, source_lang, target_lang, return_seqs]
88
  outputs = gr.Textbox()
@@ -95,6 +95,11 @@ with gr.Blocks() as app:
95
  ["Hello! How are you?", "English", "toki pona", 3],
96
  ["toki a! ilo pi ante toki ni li pona!", "toki pona", "English", 3],
97
  ["mi li toki e toki pona", "toki pona", "toki pona", 3],
 
 
 
 
 
98
  ],
99
  inputs=inputs
100
  )
 
79
  with gr.Row():
80
  gr.Markdown(markdown)
81
  with gr.Column():
82
+ input_text = gr.components.Textbox(label="Input Text", value="Toad (Pit Crew) is a fun character you can try in Mario Kart Tour! Wow!")
83
  source_lang = gr.components.Dropdown(label="Source Language", value="English", choices=list(LANG_CODES.keys()))
84
  target_lang = gr.components.Dropdown(label="Target Language", value="toki pona", choices=list(LANG_CODES.keys()))
85
+ return_seqs = gr.Slider(label="Number of return sequences", value=3, minimum=1, maximum=24, step=1)
86
 
87
  inputs=[input_text, source_lang, target_lang, return_seqs]
88
  outputs = gr.Textbox()
 
95
  ["Hello! How are you?", "English", "toki pona", 3],
96
  ["toki a! ilo pi ante toki ni li pona!", "toki pona", "English", 3],
97
  ["mi li toki e toki pona", "toki pona", "toki pona", 3],
98
+ ["It's a good music generated by AI.", "English", "English", 3],
99
+ ["Hello, world! How are you?", "English", "toki pona", 3],
100
+ ["toki pona li toki pona.", "toki pona", "English", 3],
101
+ ["pona toki a", "toki pona", "toki pona", 3],
102
+ ["I want some bread and rice.", "English", "English", 3],
103
  ],
104
  inputs=inputs
105
  )