Update app.py
Browse files
app.py
CHANGED
|
@@ -118,6 +118,7 @@ with demo:
|
|
| 118 |
out = gr.Plot()
|
| 119 |
|
| 120 |
button = gr.Button(value="Run")
|
|
|
|
| 121 |
button.click(fn=inference,
|
| 122 |
inputs=inp,
|
| 123 |
outputs=out)
|
|
|
|
| 118 |
out = gr.Plot()
|
| 119 |
|
| 120 |
button = gr.Button(value="Run")
|
| 121 |
+
gr.Examples([["A deep and meaningful film.", "bert-base-uncased-cls-sst2"], ["A deep and meaningful film.", "bert-large-sst2"]], inp, out, inference, cache_examples=True)
|
| 122 |
button.click(fn=inference,
|
| 123 |
inputs=inp,
|
| 124 |
outputs=out)
|