dmariko commited on
Commit
ec7bbbb
1 Parent(s): 8aedf44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -71,7 +71,7 @@ output_text = gr.outputs.Textbox()
71
  if __name__ == '__main__':
72
 
73
  text = ['Group profit | valIs | € 115.7 million && € 115.7 million | dTime | in 2019']
74
- examples = [['Net income | valIs | $48 million && $48 million | diGeo | in France && Net income | jPose | the interest rate && the interest rate | valIs | 0.6%'],
75
  ['The retirement age | incBy | 7 years && 7 years | cTime | 2018 && The retirement age | jpose | life expectancy && life expectancy | incBy | 10 years'],
76
  ['sales | incBy | € 115.7 million && € 115.7 million | dTime | in 2019 && € 115.7 million | diGeo | Europe']]
77
 
@@ -89,7 +89,8 @@ app = gr.Interface(
89
 
90
  inputs=[gr.inputs.Dropdown(model_name_list, label="Model Name"), 'text'], outputs=output_text,
91
 
92
- examples = [[MODEL_BUF["name"], examples]],
 
93
 
94
  title="FTG",
95
 
 
71
  if __name__ == '__main__':
72
 
73
  text = ['Group profit | valIs | € 115.7 million && € 115.7 million | dTime | in 2019']
74
+ example = [['Net income | valIs | $48 million && $48 million | diGeo | in France && Net income | jPose | the interest rate && the interest rate | valIs | 0.6%'],
75
  ['The retirement age | incBy | 7 years && 7 years | cTime | 2018 && The retirement age | jpose | life expectancy && life expectancy | incBy | 10 years'],
76
  ['sales | incBy | € 115.7 million && € 115.7 million | dTime | in 2019 && € 115.7 million | diGeo | Europe']]
77
 
 
89
 
90
  inputs=[gr.inputs.Dropdown(model_name_list, label="Model Name"), 'text'], outputs=output_text,
91
 
92
+ #examples = [[MODEL_BUF["name"], text]],
93
+ examples = example,
94
 
95
  title="FTG",
96