Spaces:
Sleeping
Sleeping
fix bug
Browse files- .ipynb_checkpoints/app-checkpoint.py +6 -4
- app.py +6 -4
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -31,10 +31,12 @@ example1 = ["On Monday, Tom went to the market.","Tom went to the market on Mond
|
|
31 |
s1 = gr.Textbox(value="One",label="Sentence 1")
|
32 |
s2 = gr.Textbox(value="Two",label="Sentence 2")
|
33 |
|
34 |
-
examples = gr.Examples(
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
38 |
|
39 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
40 |
examples=examples,
|
|
|
31 |
s1 = gr.Textbox(value="One",label="Sentence 1")
|
32 |
s2 = gr.Textbox(value="Two",label="Sentence 2")
|
33 |
|
34 |
+
examples = gr.Examples(
|
35 |
+
examples=[
|
36 |
+
["one", "two"],
|
37 |
+
],
|
38 |
+
inputs=[s1, s2],
|
39 |
+
)
|
40 |
|
41 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
42 |
examples=examples,
|
app.py
CHANGED
@@ -31,10 +31,12 @@ example1 = ["On Monday, Tom went to the market.","Tom went to the market on Mond
|
|
31 |
s1 = gr.Textbox(value="One",label="Sentence 1")
|
32 |
s2 = gr.Textbox(value="Two",label="Sentence 2")
|
33 |
|
34 |
-
examples = gr.Examples(
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
38 |
|
39 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
40 |
examples=examples,
|
|
|
31 |
s1 = gr.Textbox(value="One",label="Sentence 1")
|
32 |
s2 = gr.Textbox(value="Two",label="Sentence 2")
|
33 |
|
34 |
+
examples = gr.Examples(
|
35 |
+
examples=[
|
36 |
+
["one", "two"],
|
37 |
+
],
|
38 |
+
inputs=[s1, s2],
|
39 |
+
)
|
40 |
|
41 |
demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
|
42 |
examples=examples,
|