rachith commited on
Commit
14b51c3
1 Parent(s): dc32f0a

block layout

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -23,12 +23,15 @@ def zs(premise,hypothesis):
23
 
24
 
25
  with gr.Blocks() as demo:
26
- premise = gr.Textbox(label="Premise")
27
- hypothesis = gr.Textbox(label="Hypothesis")
28
- entailment = gr.Textbox(label="Entailment Probability")
29
- contradiction = gr.Textbox(label="Contradiction Probability")
30
- neutral = gr.Textbox(label="Neutral Probability")
31
- greet_btn = gr.Button("Compute")
32
- greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
 
 
 
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()