felixz commited on
Commit
078f905
·
1 Parent(s): e0a0f30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,6 +26,6 @@ def text2text(input_text):
26
  return tokenizer.decode(outputs[0])
27
 
28
  textin = gr.Textbox()
29
-
30
- iface = gr.Interface(fn=text2text, inputs=[textin], outputs="text", examples=gr.Examples(examples=get_examples(), inputs=[textin]))
31
  iface.launch()
 
26
  return tokenizer.decode(outputs[0])
27
 
28
  textin = gr.Textbox()
29
+ examples = gr.Examples(examples=get_examples(), inputs=[textin])
30
+ iface = gr.Interface(fn=text2text, inputs=[textin, examples], outputs="text")
31
  iface.launch()