Spaces:
Build error
Build error
trying to get examples to work
Browse files
app.py
CHANGED
|
@@ -30,10 +30,6 @@ def zs(premise,hypothesis):
|
|
| 30 |
|
| 31 |
|
| 32 |
with gr.Blocks() as demo:
|
| 33 |
-
gr.Examples(
|
| 34 |
-
examples = [["Roger Federer is an amazing Tennis Player","The stance to Roger Federer is positive."]],
|
| 35 |
-
inputs = [["Roger Federer is an amazing Tennis Player","The stance to Roger Federer is positive."]]
|
| 36 |
-
)
|
| 37 |
gr.Markdown(f"# {title}")
|
| 38 |
gr.Markdown(f"## {description}")
|
| 39 |
with gr.Row():
|
|
@@ -47,5 +43,9 @@ with gr.Blocks() as demo:
|
|
| 47 |
# neutral = gr.Textbox(label="Neutral Probability")
|
| 48 |
# greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,neutral,entailment])
|
| 49 |
greet_btn.click(fn=zs, inputs=[premise,hypothesis], outputs=[contradiction,entailment])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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():
|
|
|
|
| 43 |
# neutral = gr.Textbox(label="Neutral Probability")
|
| 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()
|