Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|
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()
|