Spaces:
Sleeping
Sleeping
fix bug
Browse files- .ipynb_checkpoints/app-checkpoint.py +4 -3
- app.py +4 -3
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -28,11 +28,12 @@ long_desc = "This is a Flan-T5-Large model fine-tuned to perform paraphrase clas
|
|
28 |
|
29 |
example1 = ["On Monday, Tom went to the market.","Tom went to the market on Monday."]
|
30 |
|
31 |
-
s1 = gr.Textbox(label="Sentence 1")
|
32 |
-
s2 = gr.Textbox(label="Sentence 2")
|
33 |
|
34 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
35 |
-
examples=gr.Examples(examples=[
|
|
|
36 |
title=title,
|
37 |
description=desc,
|
38 |
article=long_desc)
|
|
|
28 |
|
29 |
example1 = ["On Monday, Tom went to the market.","Tom went to the market on Monday."]
|
30 |
|
31 |
+
s1 = gr.Textbox(value="One",label="Sentence 1")
|
32 |
+
s2 = gr.Textbox(value="Two",label="Sentence 2")
|
33 |
|
34 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
35 |
+
examples=gr.Examples(examples=[["one","two"],],
|
36 |
+
inputs=[s1,s2]),
|
37 |
title=title,
|
38 |
description=desc,
|
39 |
article=long_desc)
|
app.py
CHANGED
@@ -28,11 +28,12 @@ long_desc = "This is a Flan-T5-Large model fine-tuned to perform paraphrase clas
|
|
28 |
|
29 |
example1 = ["On Monday, Tom went to the market.","Tom went to the market on Monday."]
|
30 |
|
31 |
-
s1 = gr.Textbox(label="Sentence 1")
|
32 |
-
s2 = gr.Textbox(label="Sentence 2")
|
33 |
|
34 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
35 |
-
examples=gr.Examples(examples=[
|
|
|
36 |
title=title,
|
37 |
description=desc,
|
38 |
article=long_desc)
|
|
|
28 |
|
29 |
example1 = ["On Monday, Tom went to the market.","Tom went to the market on Monday."]
|
30 |
|
31 |
+
s1 = gr.Textbox(value="One",label="Sentence 1")
|
32 |
+
s2 = gr.Textbox(value="Two",label="Sentence 2")
|
33 |
|
34 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
35 |
+
examples=gr.Examples(examples=[["one","two"],],
|
36 |
+
inputs=[s1,s2]),
|
37 |
title=title,
|
38 |
description=desc,
|
39 |
article=long_desc)
|