Spaces:
Sleeping
Sleeping
fix bug
Browse files- .ipynb_checkpoints/app-checkpoint.py +5 -2
- app.py +5 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -28,8 +28,11 @@ 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 |
-
|
32 |
-
|
|
|
|
|
|
|
33 |
title=title,
|
34 |
description=desc,
|
35 |
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(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=[example1],inputs=[s1,s2]),
|
36 |
title=title,
|
37 |
description=desc,
|
38 |
article=long_desc)
|
app.py
CHANGED
@@ -28,8 +28,11 @@ 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 |
-
|
32 |
-
|
|
|
|
|
|
|
33 |
title=title,
|
34 |
description=desc,
|
35 |
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(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=[example1],inputs=[s1,s2]),
|
36 |
title=title,
|
37 |
description=desc,
|
38 |
article=long_desc)
|