tlkh commited on
Commit
6dd113d
·
1 Parent(s): c92a2d6
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +6 -4
  2. 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(examples=[["prompt_1", "prompt_1"],
35
- ["prompt_2", "prompt_2"],
36
- ["prompt_3", "prompt_3"],],
37
- inputs=[s1, s2])
 
 
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(examples=[["prompt_1", "prompt_1"],
35
- ["prompt_2", "prompt_2"],
36
- ["prompt_3", "prompt_3"],],
37
- inputs=[s1, s2])
 
 
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,