rachith commited on
Commit
e419026
1 Parent(s): 2aa92a9

inputs to examples

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -30,8 +30,8 @@ def zs(premise,hypothesis):
30
 
31
 
32
  with gr.Blocks() as demo:
33
- gr.Markdown(f"# {title}")
34
- gr.Markdown(f"## {description}")
35
  with gr.Row():
36
  premise = gr.Textbox(label="Premise",placeholder = "Roger Federer is an amazing Tennis Player")
37
  hypothesis = gr.Textbox(label="Hypothesis", placeholder = "The stance to Roger Federer is positive.")
@@ -44,8 +44,9 @@ with gr.Blocks() as demo:
44
  # greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
45
  greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,entailment])
46
  gr.Examples(
 
47
  examples = [["Roger Federer is an amazing Tennis Player","The stance to Roger Federer is positive."]],
48
- inputs = [[premise,hypothesis]]
49
  )
50
 
51
  demo.launch()
 
30
 
31
 
32
  with gr.Blocks() as demo:
33
+ gr.Markdown(f" # {title}")
34
+ gr.Markdown(f" ## {description}")
35
  with gr.Row():
36
  premise = gr.Textbox(label="Premise",placeholder = "Roger Federer is an amazing Tennis Player")
37
  hypothesis = gr.Textbox(label="Hypothesis", placeholder = "The stance to Roger Federer is positive.")
 
44
  # greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
45
  greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,entailment])
46
  gr.Examples(
47
+ fn = zs,
48
  examples = [["Roger Federer is an amazing Tennis Player","The stance to Roger Federer is positive."]],
49
+ inputs = [premise,hypothesis]
50
  )
51
 
52
  demo.launch()