Dimitre commited on
Commit
63d003c
1 Parent(s): 8d0e09f

Adding examples

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -26,5 +26,6 @@ model = model_fn(preprocessor, encoder)
26
 
27
  iface = gr.Interface(fn=predict_fn,
28
  inputs=gr.Textbox(lines=2, placeholder="Text input here...", label="Text"),
29
- outputs="text")
 
30
  iface.launch()
 
26
 
27
  iface = gr.Interface(fn=predict_fn,
28
  inputs=gr.Textbox(lines=2, placeholder="Text input here...", label="Text"),
29
+ outputs="text",
30
+ examples=[["Hello! This is a random sentence"]])
31
  iface.launch()
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  GitPython
 
2
  tensorflow_hub
 
1
  GitPython
2
+ tensorflow
3
  tensorflow_hub