rachith commited on
Commit
74fb4ea
·
1 Parent(s): 6f8c99b

federer example

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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()