Spaces:
Build error
Build error
Netplace example
Browse files
app.py
CHANGED
@@ -51,9 +51,10 @@ with gr.Blocks() as demo:
|
|
51 |
# greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
|
52 |
greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,entailment])
|
53 |
gr.Examples(
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
57 |
)
|
58 |
|
59 |
demo.launch()
|
|
|
51 |
# greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
|
52 |
greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,entailment])
|
53 |
gr.Examples(
|
54 |
+
fn = zs,
|
55 |
+
examples = [["Roger Federer is an amazing tennis player.","The stance to Roger Federer is positive."],
|
56 |
+
["NETPLACE is an awesome gathering,", "We should do this more often."]],
|
57 |
+
inputs = [premise,hypothesis]
|
58 |
)
|
59 |
|
60 |
demo.launch()
|