Spaces:
Runtime error
Runtime error
Adding examples
Browse files- app.py +2 -1
- 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
|