Spaces:
Build error
Build error
block layout
Browse files
app.py
CHANGED
@@ -23,12 +23,15 @@ def zs(premise,hypothesis):
|
|
23 |
|
24 |
|
25 |
with gr.Blocks() as demo:
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
33 |
|
34 |
demo.launch()
|
|
|
23 |
|
24 |
|
25 |
with gr.Blocks() as demo:
|
26 |
+
with gr.Row():
|
27 |
+
premise = gr.Textbox(label="Premise")
|
28 |
+
hypothesis = gr.Textbox(label="Hypothesis")
|
29 |
+
with gr.Row():
|
30 |
+
greet_btn = gr.Button("Compute")
|
31 |
+
with gr.Row():
|
32 |
+
entailment = gr.Textbox(label="Entailment Probability")
|
33 |
+
contradiction = gr.Textbox(label="Contradiction Probability")
|
34 |
+
neutral = gr.Textbox(label="Neutral Probability")
|
35 |
+
greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
|
36 |
|
37 |
demo.launch()
|