ruanchaves commited on
Commit
2b49144
1 Parent(s): 87ced4a

feat: add examples

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -14,7 +14,11 @@ Enter a hashtag or pick one from the examples below. The app will suggest the be
14
  """
15
 
16
  app_examples = [
17
- ["#helloworld"]
 
 
 
 
18
  ]
19
 
20
  output_json_component_description = {"": ""}
@@ -119,8 +123,8 @@ def predict(s1, language, candidates, use_reranker, topk, steps):
119
 
120
  inputs = [
121
  gr.Textbox(label="Hashtag"),
122
- gr.Dropdown(language_list, label="Language", value="english (fast)"),
123
  gr.Textbox(label="Candidate segmentations"),
 
124
  gr.Checkbox(label="Use reranker", value=True),
125
  gr.Slider(0, 100, value=20, label="Advanced setting - Beamsearch top-k"),
126
  gr.Slider(0, 100, value=13, label="Advanced setting - Beamsearch steps")
 
14
  """
15
 
16
  app_examples = [
17
+ ["#cristianoronaldo", "cristian o ronaldo"],
18
+ ["#madridsinfiltros", ""],
19
+ ["#kuenstlicheintelligenz", "kuenstliche intelligenz"],
20
+ ["#dadscare", "dad scare, dads care"],
21
+ ["#nowthatcherisdead", "now that cher is dead, now thatcher is dead"],
22
  ]
23
 
24
  output_json_component_description = {"": ""}
 
123
 
124
  inputs = [
125
  gr.Textbox(label="Hashtag"),
 
126
  gr.Textbox(label="Candidate segmentations"),
127
+ gr.Dropdown(language_list, label="Language", value="english (fast)"),
128
  gr.Checkbox(label="Use reranker", value=True),
129
  gr.Slider(0, 100, value=20, label="Advanced setting - Beamsearch top-k"),
130
  gr.Slider(0, 100, value=13, label="Advanced setting - Beamsearch steps")