Spaces:
Build error
Build error
inputs to examples
Browse files
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 = [
|
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()
|