rexoscare commited on
Commit
1f0b456
·
1 Parent(s): 29b7792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -27,10 +27,11 @@ input_1 = gr.inputs.Radio(choices = choices, label='Choose a model.')
27
  input_2 = gr.inputs.Textbox(placeholder='Enter your text here...', label = 'Input')
28
 
29
  article = "<p style='text-align: center'><a href='https://github.com/PrithivirajDamodaran/Styleformer'>Styleformer GitHub</a></p>"
 
30
 
31
  iface = gr.Interface(
32
  model_selection,
33
- [input_1, input_2], "text", theme = 'huggingface', article=article)
34
 
35
  if __name__ == "__main__":
36
  iface.launch()
 
27
  input_2 = gr.inputs.Textbox(placeholder='Enter your text here...', label = 'Input')
28
 
29
  article = "<p style='text-align: center'><a href='https://github.com/PrithivirajDamodaran/Styleformer'>Styleformer GitHub</a></p>"
30
+ examples = [["Formal to Informal", "Your mother is so old that her last name is asaurus"], ["Informal to Formal", "Yo what's up with the weather?"]]
31
 
32
  iface = gr.Interface(
33
  model_selection,
34
+ [input_1, input_2], "text", theme = 'huggingface', article=article, examples = examples)
35
 
36
  if __name__ == "__main__":
37
  iface.launch()