Spaces:
Build error
Build error
federer example
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def zs(premise,hypothesis):
|
|
31 |
|
32 |
with gr.Blocks() as demo:
|
33 |
with gr.Row():
|
34 |
-
premise = gr.Textbox(label="Premise")
|
35 |
-
hypothesis = gr.Textbox(label="Hypothesis")
|
36 |
with gr.Row():
|
37 |
greet_btn = gr.Button("Compute")
|
38 |
with gr.Row():
|
@@ -41,7 +41,5 @@ with gr.Blocks() as demo:
|
|
41 |
# neutral = gr.Textbox(label="Neutral Probability")
|
42 |
# greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
|
43 |
greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,entailment])
|
44 |
-
# examples = gr.Examples(examples=[["Roger Federer is an amazing Tennis Player", "The stance to Roger Federer is positive."]],inputs=["Roger Federer is an amazing Tennis Player", "The stance to Roger Federer is positive."])
|
45 |
-
|
46 |
|
47 |
demo.launch()
|
|
|
31 |
|
32 |
with gr.Blocks() as demo:
|
33 |
with gr.Row():
|
34 |
+
premise = gr.Textbox(label="Premise",placeholder = "Roger Federer is an amazing Tennis Player")
|
35 |
+
hypothesis = gr.Textbox(label="Hypothesis", placeholder = "The stance to Roger Federer is positive.")
|
36 |
with gr.Row():
|
37 |
greet_btn = gr.Button("Compute")
|
38 |
with gr.Row():
|
|
|
41 |
# neutral = gr.Textbox(label="Neutral Probability")
|
42 |
# greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
|
43 |
greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,entailment])
|
|
|
|
|
44 |
|
45 |
demo.launch()
|